Debian Codegraph @

utils/autosp/autosp-src/autosp.test

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