texlive[68450] Build/source/texk/web2c: new luatex test,
commits+karl at tug.org
commits+karl at tug.org
Wed Oct 4 18:55:04 CEST 2023
Revision: 68450
https://tug.org/svn/texlive?view=revision&revision=68450
Author: karl
Date: 2023-10-04 18:55:03 +0200 (Wed, 04 Oct 2023)
Log Message:
-----------
new luatex test, luaoutputdir.test
Modified Paths:
--------------
trunk/Build/source/texk/web2c/Makefile.in
trunk/Build/source/texk/web2c/luatexdir/ChangeLog
trunk/Build/source/texk/web2c/luatexdir/am/luatex.am
Added Paths:
-----------
trunk/Build/source/texk/web2c/luatexdir/luaoutputdir.test
Modified: trunk/Build/source/texk/web2c/Makefile.in
===================================================================
--- trunk/Build/source/texk/web2c/Makefile.in 2023-10-03 23:41:07 UTC (rev 68449)
+++ trunk/Build/source/texk/web2c/Makefile.in 2023-10-04 16:55:03 UTC (rev 68450)
@@ -5337,7 +5337,10 @@
# LuaTeX/LuaJITTeX Tests
#
-luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test
+luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test \
+ luatexdir/luaoutputdir.test
+
+#
luahbtex_tests = luatexdir/luatex.test luatexdir/luaimage.test
luajittex_tests = luatexdir/luajittex.test luatexdir/luajitimage.test
luajithbtex_tests = luatexdir/luajittex.test luatexdir/luajitimage.test
@@ -22324,7 +22327,8 @@
@MINGW32_FALSE@@WIN32_TRUE at uninstall-luajithbtex-links:
@MINGW32_FALSE@@WIN32_TRUE@ rm -f $(DESTDIR)$(bindir)/texluajit$(EXEEXT)
@MINGW32_FALSE@@WIN32_TRUE@ rm -f $(DESTDIR)$(bindir)/texluajitc$(EXEEXT)
-luatexdir/luatex.log luatexdir/luaimage.log: luatex$(EXEEXT)
+luatexdir/luatex.log luatexdir/luaimage.log luatexdir/luaoutputdir.log: \
+ luatex$(EXEEXT)
luatexdir/luahbtex.log luatexdir/luahbimage.log: luahbtex$(EXEEXT)
luatexdir/luajittex.log luatexdir/luajitimage.log: luajittex$(EXEEXT)
luatexdir/luajithbtex.log luatexdir/luajithbimage.log: luajithbtex$(EXEEXT)
Modified: trunk/Build/source/texk/web2c/luatexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/ChangeLog 2023-10-03 23:41:07 UTC (rev 68449)
+++ trunk/Build/source/texk/web2c/luatexdir/ChangeLog 2023-10-04 16:55:03 UTC (rev 68450)
@@ -1,3 +1,9 @@
+2023-10-04 Karl Berry <karl at freefriends.org>
+
+ * luaoutputdir.test: new test for Lua-level reading from a given
+ --output-directory.
+ * am/luatex.am (luatex_tests): add it, plus .log dependency.
+
2023-04-29 Luigi Scarso <luigi.scarso at gmail.com>
* LuaTeX 1.17.0
Modified: trunk/Build/source/texk/web2c/luatexdir/am/luatex.am
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/am/luatex.am 2023-10-03 23:41:07 UTC (rev 68449)
+++ trunk/Build/source/texk/web2c/luatexdir/am/luatex.am 2023-10-04 16:55:03 UTC (rev 68450)
@@ -232,8 +232,11 @@
# LuaTeX/LuaJITTeX Tests
#
-luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test
-luatexdir/luatex.log luatexdir/luaimage.log: luatex$(EXEEXT)
+luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test \
+ luatexdir/luaoutputdir.test
+luatexdir/luatex.log luatexdir/luaimage.log luatexdir/luaoutputdir.log: \
+ luatex$(EXEEXT)
+#
luahbtex_tests = luatexdir/luatex.test luatexdir/luaimage.test
luatexdir/luahbtex.log luatexdir/luahbimage.log: luahbtex$(EXEEXT)
Added: trunk/Build/source/texk/web2c/luatexdir/luaoutputdir.test
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luaoutputdir.test (rev 0)
+++ trunk/Build/source/texk/web2c/luatexdir/luaoutputdir.test 2023-10-04 16:55:03 UTC (rev 68450)
@@ -0,0 +1,35 @@
+#! /bin/sh -vx
+# luaoutputdir.test - check that Lua-level kpse.* reads from -output-directory.
+# Public domain. Originally written by Karl Berry, 2023.
+# https://github.com/latex3/latex3/issues/1070
+
+BinDir=${BinDir:-.} # ordinarily run from the web2c builddir
+ExeExt=${ExeExt:-}
+_luatex=$BinDir/luatex$ExeExt
+
+# in case we're invoked standalone instead of from make.
+test -z "$srcdir" && srcdir=`cd \`dirname $0\`/.. && pwd` # web2c/
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+
+outdir=tests/outdirlua
+outfile=outfileLUA.tex
+rm -rf $outdir # don't let previous runs interfere
+mkdir $outdir || exit 1
+
+$_luatex -ini -output-directory=$outdir '\immediate\openout1='$outfile'\end' \
+|| exit 3
+
+ls -l $outdir/$outfile || exit 7
+
+# Then we should be able to read it back in TeX.
+$_luatex -ini -output-directory=$outdir '\input '$outfile' \end' || exit 9
+
+# And we should also be able to read it back in Lua.
+$_luatex -ini -output-directory=$outdir \
+'\catcode123=1 \catcode125=2
+ \directlua{local file=kpse.find_file("'$outfile'");
+ if (file == nil) then os.exit(1); end}
+ \end
+' || exit 11
+
+exit 0
Property changes on: trunk/Build/source/texk/web2c/luatexdir/luaoutputdir.test
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
More information about the tex-live-commits
mailing list.