summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/eptexdir
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-05-28 14:59:37 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-05-28 14:59:37 +0000
commit580e66220eb45ed1e114a3796e4a39d1e35f748b (patch)
tree3369127497d64411641983b834e7d12fdbdc145f /Build/source/texk/web2c/eptexdir
parent903916a54c01500b9bf64254ce26c186b49a2475 (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/eptexdir')
-rw-r--r--Build/source/texk/web2c/eptexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/eptexdir/am/eptex.am3
-rwxr-xr-xBuild/source/texk/web2c/eptexdir/epver.test32
3 files changed, 39 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/eptexdir/ChangeLog b/Build/source/texk/web2c/eptexdir/ChangeLog
index d3f6e422ba6..a3fdd4378b8 100644
--- a/Build/source/texk/web2c/eptexdir/ChangeLog
+++ b/Build/source/texk/web2c/eptexdir/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-28 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * am/eptex.am: Add a new test.
+ * epver.test: New test file for version number consistency.
+
2019-04-02 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* eptex.ech: \fontcharwd etc. for Japanese fonts correctly
diff --git a/Build/source/texk/web2c/eptexdir/am/eptex.am b/Build/source/texk/web2c/eptexdir/am/eptex.am
index 7428c9b4e88..6ce9d1a601b 100644
--- a/Build/source/texk/web2c/eptexdir/am/eptex.am
+++ b/Build/source/texk/web2c/eptexdir/am/eptex.am
@@ -81,9 +81,10 @@ EXTRA_DIST += \
# e-pTeX Tests
#
-eptex_tests = eptexdir/eptriptest.test eptexdir/pdfprimitive.test
+eptex_tests = eptexdir/eptriptest.test eptexdir/pdfprimitive.test eptexdir/epver.test
eptexdir/eptriptest.log: eptex$(EXEEXT) dvitype$(EXEEXT) pltotf$(EXEEXT) tftopl$(EXEEXT)
eptexdir/pdfprimitive.log: eptex$(EXEEXT)
+eptexdir/epver.log: eptex$(EXEEXT)
EXTRA_DIST += $(eptex_tests)
diff --git a/Build/source/texk/web2c/eptexdir/epver.test b/Build/source/texk/web2c/eptexdir/epver.test
new file mode 100755
index 00000000000..0a232cf1392
--- /dev/null
+++ b/Build/source/texk/web2c/eptexdir/epver.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
+./eptex -ini -etex -interaction batchmode -jobname epver1-log pver1.tex >epver1-term.log || exit 1
+sed -nE 's/^This is ([-A-Za-z]+), Version [^-]+-([^ ]+) (.*)/\1 \2/p' \
+ epver1-term.log >epver1-term_ed.log || exit 1
+sed -nE 's/^This is ([-A-Za-z]+), Version [^-]+-([^ ]+) (.*)/\1 \2/p' \
+ epver1-log.log >epver1-log_ed.log || exit 1
+diff epver1-term_ed.log epver1-log_ed.log || exit 2
+
+# check consistency between runtime and version output
+./eptex -version >epver2-self.log || exit 1
+sed -nE '1 s/^([-A-Za-z]+) [^-]+-([^ ]+) (.*)/\1 \2/p' \
+ epver2-self.log >epver2-self_ed.log || exit 1
+diff epver1-term_ed.log epver2-self_ed.log || exit 4
+
+# check consistency between version output and version primitives
+./eptex -ini -etex -interaction batchmode -jobname epver2-prim pver2.tex || exit 1
+sed -nE 's/^Engine ([-A-Za-z]+) ([^ ]+) (.*)/\1 \2/p' \
+ epver2-prim.log >epver2-prim_ed.log || exit 1
+diff epver2-self_ed.log epver2-prim_ed.log || exit 8
+
+exit 0
+