Debian Codegraph @

utils/autosp/autosp-src/tex2aspc.test

raw
1 #! /bin/sh -vx
2
3 #! /bin/sh -vx
4
5 # Copyright 2018 Karl Berry <[email protected]>
6 # You may freely use, modify and/or distribute this file.
7
8 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
9
10
11 if test -z "$test_srcdir"; then
12 # If not set, then we are not running from `make check'.
13 test_srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'` # == dirname $0
14 test "$test_srcdir" = "$0" && test_srcdir=. # in case subst failed
15 fi
16 echo "test_srcdir=$test_srcdir"
17
18 echo && echo "*** tex2aspc --help"
19 ./tex2aspc --help || exit 1
20
21 echo && echo "*** tex2aspc --version"
22 ./tex2aspc --version || exit 1
23
24 echo && echo "*** tex2aspc (missing infile)"
25 ./tex2aspc && exit 1
26
27 echo && echo "*** tex2aspc quod4.tex quod4.aspc"
28 cp "$test_srcdir"/tests/quod4.tex quod4.tex
29 rm -f quod4.aspc
30 ./tex2aspc quod4.tex quod4.aspc || exit 1
31
32 echo && echo "*** diff quod4.aspc tests/quod4.aspc"
33 diff quod4.aspc "$test_srcdir"/tests/quod4.aspc || exit 1
34