texlive[68085] Build/source/texk/web2c/pdftexdir: pdftex: Make easier

commits+takuji at tug.org commits+takuji at tug.org
Sun Aug 27 16:18:27 CEST 2023


Revision: 68085
          http://tug.org/svn/texlive?view=revision&revision=68085
Author:   takuji
Date:     2023-08-27 16:18:27 +0200 (Sun, 27 Aug 2023)
Log Message:
-----------
pdftex: Make easier to test on Windows

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/tests/cnfline.test
    trunk/Build/source/texk/web2c/pdftexdir/tests/partoken.test

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2023-08-27 14:18:22 UTC (rev 68084)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2023-08-27 14:18:27 UTC (rev 68085)
@@ -1,3 +1,8 @@
+2023-08-27  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
+
+	* tests/{cnfline,partoken}.test:
+	Make easier to test on Windows.
+
 2023-08-26  Karl Berry  <karl at freefriends.org>
 
 	* writet1.c (t1_builtin_enc): guard somewhat against corrupt pfbs,

Modified: trunk/Build/source/texk/web2c/pdftexdir/tests/cnfline.test
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/tests/cnfline.test	2023-08-27 14:18:22 UTC (rev 68084)
+++ trunk/Build/source/texk/web2c/pdftexdir/tests/cnfline.test	2023-08-27 14:18:27 UTC (rev 68085)
@@ -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

Modified: trunk/Build/source/texk/web2c/pdftexdir/tests/partoken.test
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/tests/partoken.test	2023-08-27 14:18:22 UTC (rev 68084)
+++ trunk/Build/source/texk/web2c/pdftexdir/tests/partoken.test	2023-08-27 14:18:27 UTC (rev 68085)
@@ -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 @@
 
 # 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



More information about the tex-live-commits mailing list.