summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/dvicopy.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/dvicopy.test')
-rwxr-xr-xBuild/source/texk/web2c/dvicopy.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/dvicopy.test b/Build/source/texk/web2c/dvicopy.test
new file mode 100755
index 00000000000..07e61ed14a3
--- /dev/null
+++ b/Build/source/texk/web2c/dvicopy.test
@@ -0,0 +1,22 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2009-2012 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+test -d tests || mkdir -p tests
+
+if tfmpath=`$KPSEWHICH cmbx10.tfm`; then
+
+ TEXMFCNF=$srcdir/../kpathsea \
+ TFMFONTS=`dirname "$tfmpath"` \
+ ./dvicopy $srcdir/tests/story tests/xstory.dvi || exit 1
+
+fi
+
+# Redirect stderr so the terminal output will end up in the log file.
+(TEXMFCNF=$srcdir/../kpathsea \
+ TFMFONTS=$srcdir/tests \
+ VFFONTS=$srcdir/tests \
+ ./dvicopy <$srcdir/tests/pplr.dvi >tests/xpplr.dvi) 2>&1 || exit 1
+