summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2023-08-27 14:18:27 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2023-08-27 14:18:27 +0000
commit240fb49d752c707b09b1370892201fc3a9beb8ac (patch)
tree458455df73a74fc849a77799df24f9ce60aa97c0
parent7b3bf6947b40ec8c84ffe693e72d6b3a8165d123 (diff)
pdftex: Make easier to test on Windows
git-svn-id: svn://tug.org/texlive/trunk@68085 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog5
-rwxr-xr-xBuild/source/texk/web2c/pdftexdir/tests/cnfline.test6
-rwxr-xr-xBuild/source/texk/web2c/pdftexdir/tests/partoken.test7
3 files changed, 15 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index f882df72433..18e28273495 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-27 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * tests/{cnfline,partoken}.test:
+ Make easier to test on Windows.
+
2023-08-26 Karl Berry <karl@freefriends.org>
* writet1.c (t1_builtin_enc): guard somewhat against corrupt pfbs,
diff --git a/Build/source/texk/web2c/pdftexdir/tests/cnfline.test b/Build/source/texk/web2c/pdftexdir/tests/cnfline.test
index 6bc2b1b8a53..0688a60352b 100755
--- a/Build/source/texk/web2c/pdftexdir/tests/cnfline.test
+++ b/Build/source/texk/web2c/pdftexdir/tests/cnfline.test
@@ -3,12 +3,16 @@
# Public domain. Originally written by Karl Berry
# Basic check that --cnf-line does something.
+BinDir=${BinDir:-.}
+ExeExt=${ExeExt:-}
+_pdftex=$BinDir/pdftex$ExeExt
+
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS=$srcdir/pdftexdir/tests; export TEXINPUTS
-./pdftex -ini --interaction=nonstopmode \
+$_pdftex -ini --interaction=nonstopmode \
--cnf-line=max_print_line=500 cnfline.tex || exit $?
if grep 'those hyphens are' cnfline.log >/dev/null; then
diff --git a/Build/source/texk/web2c/pdftexdir/tests/partoken.test b/Build/source/texk/web2c/pdftexdir/tests/partoken.test
index 8c9af4d9f4a..abbebfea8a7 100755
--- a/Build/source/texk/web2c/pdftexdir/tests/partoken.test
+++ b/Build/source/texk/web2c/pdftexdir/tests/partoken.test
@@ -3,6 +3,9 @@
# Public domain. Originally written by Karl Berry, 2021.
# Check for new \partokenname primitives.
+: ${BinDir=.}
+: ${ExeExt=}
+
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
# running in Build/source/Work/texk/web2c
@@ -15,11 +18,11 @@ TEXMFDOTDIR=$srcdir/tests; export TEXMFDOTDIR # both fonts and inputs
# should succeed. nonstopmode instead of batchmode so normal errors are
# printed on the terminal, and thus show up in test-suite.log.
-if ./$testengine -ini --interaction=nonstopmode partoken-ok.tex; then :; else
+if $BinDir/$testengine$ExeExt -ini --interaction=nonstopmode partoken-ok.tex; then :; else
exit 1; fi
# should fail
-if ./$testengine -ini --interaction=nonstopmode partoken-xfail.tex; then
+if $BinDir/$testengine$ExeExt -ini --interaction=nonstopmode partoken-xfail.tex; then
exit 1; fi
exit 0