summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/xdvipdfm-bb.test
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-15 09:20:23 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-15 09:20:23 +0000
commitf69294d4df8605378b030a8bf49c097b41cc74ef (patch)
tree867388d6ae85b09f0923bf7d410923b99c0fe7a0 /Build/source/texk/dvipdfm-x/xdvipdfm-bb.test
parent3fd70d1a93e1a08a3c7bba92c473bdf8e231123c (diff)
dvipdfm-x: Continue merging dvipdfmx and xdvipdfmx
Add extractbb tests git-svn-id: svn://tug.org/texlive/trunk@31197 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/xdvipdfm-bb.test')
-rwxr-xr-xBuild/source/texk/dvipdfm-x/xdvipdfm-bb.test47
1 files changed, 47 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/xdvipdfm-bb.test b/Build/source/texk/dvipdfm-x/xdvipdfm-bb.test
new file mode 100755
index 00000000000..0914438d58f
--- /dev/null
+++ b/Build/source/texk/dvipdfm-x/xdvipdfm-bb.test
@@ -0,0 +1,47 @@
+#! /bin/sh
+
+# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+TEXMFCNF=${srcdir}/../kpathsea
+DVIPDFMXINPUTS=${srcdir}/tests:${srcdir}/data
+export TEXMFCNF DVIPDFMXINPUTS
+
+testsrc=$srcdir/tests
+
+failed=
+
+rm -f pic*.*
+
+for e in jpeg png pdf; do
+ cp $testsrc/image.$e pic$e.$e
+done
+
+./xdvipdfmx --ebb -h \
+ && echo "ebb-help tests OK" \
+ || failed="$failed ebb-help"
+
+for e in jpeg png pdf; do
+ ./xdvipdfmx --ebb pic$e.$e \
+ && sed '/%%CreationDate/d' pic$e.bb >pic$e.bbx \
+ && diff $testsrc/pic$e.bb pic$e.bbx \
+ && echo "ebb-$e tests OK" \
+ || failed="$failed ebb-$e"
+done
+
+./xdvipdfmx --xbb -h \
+ && echo "xbb-help tests OK" \
+ || failed="$failed xbb-help"
+
+for e in jpeg png pdf; do
+ ./xdvipdfmx --xbb pic$e.$e \
+ && sed '/%%CreationDate/d' pic$e.xbb >pic$e.xbbx \
+ && diff $testsrc/pic$e.xbb pic$e.xbbx \
+ && echo "xbb-$e tests OK" \
+ || failed="$failed xbb-$e"
+done
+
+test -z "$failed" && exit 0
+echo "failed tests:$failed"
+exit 1
+