summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvi2tty/dvi2tty.test
blob: 9a191c2740c8d00c97c6646a048c2d3797067e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

# Copyright (C) 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=1

./dvi2tty -s $test_src/test.dvi >tests.out && diff $srcdir/tests.tty tests.out || rc=1

./dvi2tty -u $test_src/test.dvi >testu.out && diff $srcdir/testu.tty testu.out || rc=1

./dvi2tty $test_src/ligtest >ligtest.out && diff $srcdir/ligtest.tty ligtest.out || rc=1

exit $rc