summaryrefslogtreecommitdiff
path: root/Build/source/texk/psutils/psutils.test
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
committerKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
commitad547a6b5986815fda458221149728d9d9ab1d87 (patch)
tree16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/psutils/psutils.test
parent947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff)
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/psutils/psutils.test')
-rwxr-xr-xBuild/source/texk/psutils/psutils.test65
1 files changed, 65 insertions, 0 deletions
diff --git a/Build/source/texk/psutils/psutils.test b/Build/source/texk/psutils/psutils.test
new file mode 100755
index 00000000000..d50280e4c84
--- /dev/null
+++ b/Build/source/texk/psutils/psutils.test
@@ -0,0 +1,65 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017-2018 Karl Berry <tex-live@tug.org>
+# Copyright 2011-2014 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
+
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+PSUTILSINPUTS=$srcdir/data; export PSUTILSINPUTS
+
+failed=
+
+rm -rf play*
+./psselect 5:15 $srcdir/tests/play.ps playsel.ps \
+ 2>playsel.2 \
+ && diff playsel.2 $srcdir/tests/playsel.2 \
+ && echo "psselect tests OK" \
+ || failed="$failed psselect"
+
+./psbook -s4 playsel.ps playbook.ps \
+ 2>playbook.2 \
+ && diff playbook.2 $srcdir/tests/playbook.2 \
+ && echo "psbook tests OK" \
+ || failed="$failed psbook"
+
+./psresize -Pa4 -pa5 playsel.ps \
+ | sed -e 's/-0\.000000 /0.000000 /' >playres.ps \
+ && diff playres.ps $srcdir/tests/playres.ps \
+ && echo "psresize tests OK" \
+ || failed="$failed psresize"
+
+./psnup -pa4 -2 playsel.ps playnup.ps \
+ 2>playnup.2 \
+ && diff playnup.2 $srcdir/tests/playnup.2 \
+ && echo "psnup tests OK" \
+ || failed="$failed psnup"
+
+./psselect 1:18 $srcdir/tests/play.ps 2>playsel1.2 \
+ | ./psnup -pa4 -18 >playnup1.ps 2>playnup1.2 \
+ && diff playsel1.2 $srcdir/tests/playsel1.2 \
+ && diff playnup1.2 $srcdir/tests/playnup1.2 \
+ && echo "psnup1 tests OK" \
+ || failed="$failed psnup1"
+
+./pstops -pa4 '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' playsel.ps playps.ps \
+ 2>playps.2 \
+ && diff playps.2 $srcdir/tests/playps.2 \
+ && echo "pstops tests OK" \
+ || failed="$failed pstops"
+
+rm -rf plot*
+./epsffit -c 0 0 600 368 $srcdir/tests/plot.eps ploth.eps \
+ && diff ploth.eps $srcdir/tests/ploth.eps \
+ && ./epsffit -c 0 0 500 400 $srcdir/tests/plot.eps plotv.eps \
+ && diff plotv.eps $srcdir/tests/plotv.eps \
+ && ./epsffit -m 0 0 368 500 $srcdir/tests/plot.eps plotm.eps \
+ && diff plotm.eps $srcdir/tests/plotm.eps \
+ && echo "epsffit tests OK" \
+ || failed="$failed epsffit"
+
+test -z "$failed" && exit 0
+echo "failed tests:$failed"
+exit 1
+