summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/luatexdir/am/luatex.am7
-rwxr-xr-xBuild/source/texk/web2c/luatexdir/luaimage.test16
-rw-r--r--Build/source/texk/web2c/luatexdir/tests/luaimage.tex24
4 files changed, 51 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index 56cbe1d318f..b7b5d8039f4 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * luaimage.test, tests/luaimage.tex: New test and data.
+ * am/luatex.am: Add the new test.
+
2013-07-02 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* luatex.c : Replace lines between "#if defined (TeX) && defined (IPC)"
diff --git a/Build/source/texk/web2c/luatexdir/am/luatex.am b/Build/source/texk/web2c/luatexdir/am/luatex.am
index a4a7f2ced09..67b5e6a330d 100644
--- a/Build/source/texk/web2c/luatexdir/am/luatex.am
+++ b/Build/source/texk/web2c/luatexdir/am/luatex.am
@@ -60,7 +60,7 @@ endif WIN32
# luaTeX Tests
#
-luatex_tests = luatexdir/luatex.test
+luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test
EXTRA_DIST += $(luatex_tests)
@@ -68,3 +68,8 @@ if LUATEX
TESTS += $(luatex_tests)
endif LUATEX
+## luaimage.test
+EXTRA_DIST += luatexdir/tests/luaimage.tex \
+ tests/1-4.jpg tests/basic.tex tests/lily-ledger-broken.png
+DISTCLEANFILES += luaimage.fmt luaimage.log luaimage.pdf
+
diff --git a/Build/source/texk/web2c/luatexdir/luaimage.test b/Build/source/texk/web2c/luatexdir/luaimage.test
new file mode 100755
index 00000000000..1347bf9b90e
--- /dev/null
+++ b/Build/source/texk/web2c/luatexdir/luaimage.test
@@ -0,0 +1,16 @@
+#! /bin/sh
+#
+# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+TEXMFCNF=$srcdir/../kpathsea
+TEXINPUTS=$srcdir/luatexdir/tests:$srcdir/tests
+TEXFORMATS=.
+
+export TEXMFCNF TEXINPUTS TEXFORMATS
+
+./luatex -ini luaimage || exit 1
+
+./luatex -fmt=luaimage luaimage || exit 1
+
+exit 0 \ No newline at end of file
diff --git a/Build/source/texk/web2c/luatexdir/tests/luaimage.tex b/Build/source/texk/web2c/luatexdir/tests/luaimage.tex
new file mode 100644
index 00000000000..05c1f77e68b
--- /dev/null
+++ b/Build/source/texk/web2c/luatexdir/tests/luaimage.tex
@@ -0,0 +1,24 @@
+% Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+% You may freely use, modify and/or distribute this file.
+%
+\ifx\fmtname\undefined
+ \input basic
+ \directlua{tex.enableprimitives('',tex.extraprimitives())}
+ \def\fmtname{basic}
+ \expandafter\dump
+\fi
+%==================
+\pdfoutput=1
+\pdfcompresslevel=0
+
+\topskip0pt
+
+\pdfximage width \hsize height \vsize {1-4.jpg}
+\hbox{\pdfrefximage\pdflastximage}
+\eject
+
+\pdfximage width \hsize height \vsize {lily-ledger-broken.png}
+\hbox{\pdfrefximage\pdflastximage}
+\eject
+
+\bye