summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdf-x/dvipdfmx.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdf-x/dvipdfmx.test')
-rwxr-xr-xBuild/source/texk/dvipdf-x/dvipdfmx.test33
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdf-x/dvipdfmx.test b/Build/source/texk/dvipdf-x/dvipdfmx.test
new file mode 100755
index 00000000000..4fb17db507c
--- /dev/null
+++ b/Build/source/texk/dvipdf-x/dvipdfmx.test
@@ -0,0 +1,33 @@
+#! /bin/sh
+
+# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+TEXMFCNF=${srcdir}/../kpathsea
+TEXFONTS=${srcdir}/tests:${srcdir}/data
+DVIPDFMXINPUTS=${srcdir}/tests:${srcdir}/data
+TEXPICTS=${srcdir}/tests
+export TEXMFCNF TEXFONTS DVIPDFMXINPUTS TEXPICTS
+
+failed=
+
+echo "*** dvipdfmx --version" \
+ && ./dvipdfmx --version \
+ && echo && echo "dvipdfmx-version tests OK" && echo \
+ || failed="$failed dvipdfmx-version"
+
+echo "*** dvipdfmx --help" \
+ && ./dvipdfmx --help \
+ && echo && echo "dvipdfmx-help tests OK" && echo \
+ || failed="$failed dvipdfmx-help"
+
+echo "*** dvipdfmx -v -o image1.pdf image" && echo \
+ && ./dvipdfmx -v -o image1.pdf ${srcdir}/tests/image \
+ && echo && echo "dvipdfmx-image tests OK" && echo \
+ || failed="$failed dvipdfmx-image"
+
+test -z "$failed" && exit 0
+echo
+echo "failed tests:$failed"
+exit 1
+