diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2019-05-28 14:59:37 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2019-05-28 14:59:37 +0000 |
commit | 580e66220eb45ed1e114a3796e4a39d1e35f748b (patch) | |
tree | 3369127497d64411641983b834e7d12fdbdc145f /Build/source/texk/web2c/euptexdir | |
parent | 903916a54c01500b9bf64254ce26c186b49a2475 (diff) |
[e][u]ptexdir: add new tests.
git-svn-id: svn://tug.org/texlive/trunk@51243 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/euptexdir')
-rw-r--r-- | Build/source/texk/web2c/euptexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/euptexdir/am/euptex.am | 3 | ||||
-rwxr-xr-x | Build/source/texk/web2c/euptexdir/eupver.test | 32 |
3 files changed, 39 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/euptexdir/ChangeLog b/Build/source/texk/web2c/euptexdir/ChangeLog index ed76b4e9c58..cd0d73d57c6 100644 --- a/Build/source/texk/web2c/euptexdir/ChangeLog +++ b/Build/source/texk/web2c/euptexdir/ChangeLog @@ -1,3 +1,8 @@ +2019-05-28 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + + * am/euptex.am: Add a new test. + * eupver.test: New test file for version number consistency. + 2018-09-09 Karl Berry <karl@tug.org> * euptriptest.test, diff --git a/Build/source/texk/web2c/euptexdir/am/euptex.am b/Build/source/texk/web2c/euptexdir/am/euptex.am index 21ab6a9a739..b77ac522412 100644 --- a/Build/source/texk/web2c/euptexdir/am/euptex.am +++ b/Build/source/texk/web2c/euptexdir/am/euptex.am @@ -82,9 +82,10 @@ EXTRA_DIST += \ # e-upTeX Tests # -euptex_tests = euptexdir/euptriptest.test euptexdir/pdfprimitive.test +euptex_tests = euptexdir/euptriptest.test euptexdir/pdfprimitive.test euptexdir/eupver.test euptexdir/euptriptest.log: euptex$(EXEEXT) dvitype$(EXEEXT) pltotf$(EXEEXT) tftopl$(EXEEXT) euptexdir/pdfprimitive.log: euptex$(EXEEXT) +euptexdir/eupver.log: euptex$(EXEEXT) EXTRA_DIST += $(euptex_tests) diff --git a/Build/source/texk/web2c/euptexdir/eupver.test b/Build/source/texk/web2c/euptexdir/eupver.test new file mode 100755 index 00000000000..227f65bdc0b --- /dev/null +++ b/Build/source/texk/web2c/euptexdir/eupver.test @@ -0,0 +1,32 @@ +#! /bin/sh -vx +# $Id$ +# Copyright 2019 Hironobu Yamashita <h.y.acetaminophen@gmail.com> +# You may freely use, modify and/or distribute this file. + +LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE + +TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF +TEXINPUTS=$srcdir/ptexdir/tests:.; export TEXINPUTS + +# check consistency between runtime terminal and log +./euptex -ini -etex -interaction batchmode -jobname eupver1-log pver1.tex >eupver1-term.log || exit 1 +sed -nE 's/^This is ([-A-Za-z]+), Version [^-]+-([^ ]+) (.*)/\1 \2/p' \ + eupver1-term.log >eupver1-term_ed.log || exit 1 +sed -nE 's/^This is ([-A-Za-z]+), Version [^-]+-([^ ]+) (.*)/\1 \2/p' \ + eupver1-log.log >eupver1-log_ed.log || exit 1 +diff eupver1-term_ed.log eupver1-log_ed.log || exit 2 + +# check consistency between runtime and version output +./euptex -version >eupver2-self.log || exit 1 +sed -nE '1 s/^([-A-Za-z]+) [^-]+-([^ ]+) (.*)/\1 \2/p' \ + eupver2-self.log >eupver2-self_ed.log || exit 1 +diff eupver1-term_ed.log eupver2-self_ed.log || exit 4 + +# check consistency between version output and version primitives +./euptex -ini -etex -interaction batchmode -jobname eupver2-prim pver2.tex || exit 1 +sed -nE 's/^Engine ([-A-Za-z]+) ([^ ]+) (.*)/\1 \2/p' \ + eupver2-prim.log >eupver2-prim_ed.log || exit 1 +diff eupver2-self_ed.log eupver2-prim_ed.log || exit 8 + +exit 0 + |