summaryrefslogtreecommitdiff
path: root/Build/source/utils/autosp/autosp-src/tex2aspc.test
blob: 6d9f73ddd20e934f46ee2e5e44a672fc0e3819a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh -vx

#! /bin/sh -vx

# Copyright 2018 Karl Berry <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE


if test -z "$test_srcdir"; then
  # If not set, then we are not running from `make check'.
  test_srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'`  # == dirname $0
  test "$test_srcdir" = "$0" && test_srcdir=.       # in case subst failed
fi
echo "test_srcdir=$test_srcdir"

echo && echo "*** tex2aspc --help"
./tex2aspc --help || exit 1

echo && echo "*** tex2aspc --version"
./tex2aspc --version || exit 1

echo && echo "*** tex2aspc  (missing infile)"
./tex2aspc  && exit 1

echo && echo "*** tex2aspc quod4.tex quod4.aspc"
cp "$test_srcdir"/tests/quod4.tex quod4.tex
rm -f quod4.aspc
./tex2aspc quod4.tex quod4.aspc || exit 1

echo && echo "*** diff quod4.aspc tests/quod4.aspc"
diff quod4.aspc "$test_srcdir"/tests/quod4.aspc || exit 1