summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvi2tty/dvi2tty.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/dvi2tty/dvi2tty.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/dvi2tty/dvi2tty.test')
-rwxr-xr-xBuild/source/texk/dvi2tty/dvi2tty.test50
1 files changed, 50 insertions, 0 deletions
diff --git a/Build/source/texk/dvi2tty/dvi2tty.test b/Build/source/texk/dvi2tty/dvi2tty.test
new file mode 100755
index 00000000000..5a5a09873e4
--- /dev/null
+++ b/Build/source/texk/dvi2tty/dvi2tty.test
@@ -0,0 +1,50 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2010-2012 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+test_src=$srcdir/$DVI2TTY_TREE/test
+
+unset DVI2TTY # nullify dvi2tty options (if any)
+
+rc=0
+
+./dvi2tty $test_src/test.dvi >test.out && diff $srcdir/test.tty test.out || rc=1
+
+./dvi2tty -c $test_src/test.dvi >testc.out && diff $srcdir/testc.tty testc.out || rc=2
+
+./dvi2tty -s $test_src/test.dvi >tests.out && diff $srcdir/tests.tty tests.out || rc=3
+
+./dvi2tty -u $test_src/test.dvi >testu.out && diff $srcdir/testu.tty testu.out || rc=4
+
+./dvi2tty -Eu $test_src/test.dvi >testEu.out && diff $srcdir/testEu.tty testEu.out || rc=6
+
+
+./dvi2tty $test_src/ligtest >ligtest.out && diff $srcdir/ligtest.tty ligtest.out || rc=1
+
+./dvi2tty -u $test_src/ligtest >ligtestu.out && diff $srcdir/ligtestu.tty ligtestu.out || rc=4
+
+./dvi2tty -Eu $test_src/ligtest >ligtestEu.out && diff $srcdir/ligtestEu.tty ligtestEu.out || rc=6
+
+
+./dvi2tty $test_src/table.dvi >table.out && diff $srcdir/table.tty table.out || rc=1
+
+./dvi2tty -c $test_src/table.dvi >tablec.out && diff $srcdir/tablec.tty tablec.out || rc=2
+
+./dvi2tty -s $test_src/table.dvi >tables.out && diff $srcdir/tables.tty tables.out || rc=3
+
+./dvi2tty -u $test_src/table.dvi >tableu.out && diff $srcdir/tableu.tty tableu.out || rc=4
+
+./dvi2tty -u -C $test_src/table.dvi >tableuC.out && diff $srcdir/tableuC.tty tableuC.out || rc=5
+
+./dvi2tty -Eu $test_src/table.dvi >tableEu.out && diff $srcdir/tableEu.tty tableEu.out || rc=6
+
+./dvi2tty -Eu1 $test_src/table.dvi >tableEu1.out && diff $srcdir/tableEu1.tty tableEu1.out || rc=7
+
+./dvi2tty -Eu -C $test_src/table.dvi >tableEuC.out && diff $srcdir/tableEuC.tty tableEuC.out || rc=8
+
+./dvi2tty -Eu -a $test_src/table.dvi >tableEua.out && diff $srcdir/tableEua.tty tableEua.out || rc=9
+
+exit $rc
+