summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/euptexdir/eupver.test
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/euptexdir/eupver.test
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/euptexdir/eupver.test')
-rwxr-xr-xBuild/source/texk/web2c/euptexdir/eupver.test32
1 files changed, 32 insertions, 0 deletions
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
+