summaryrefslogtreecommitdiff
path: root/Build/source/utils/autosp/autosp-src
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-16 22:43:14 +0000
committerKarl Berry <karl@freefriends.org>2018-02-16 22:43:14 +0000
commitda81a040603bea4feafefcc1dacbc28b2a5c1da3 (patch)
tree8937fdba4d5a79702b825b5058da18251ff9908a /Build/source/utils/autosp/autosp-src
parent93ccafaede54490e77718a7d682343e94af262ec (diff)
compile and test tex2aspc program
git-svn-id: svn://tug.org/texlive/trunk@46654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/autosp/autosp-src')
-rwxr-xr-xBuild/source/utils/autosp/autosp-src/tex2aspc.test13
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/utils/autosp/autosp-src/tex2aspc.test b/Build/source/utils/autosp/autosp-src/tex2aspc.test
index c176b6ebea8..a27c400c92d 100755
--- a/Build/source/utils/autosp/autosp-src/tex2aspc.test
+++ b/Build/source/utils/autosp/autosp-src/tex2aspc.test
@@ -1,8 +1,15 @@
#! /bin/sh -vx
-# Copyright (C) 2015 Peter Breitenlohner <tex-live@tug.org>
+# Copyright 2018 Karl Berry <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
+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
@@ -13,9 +20,9 @@ echo && echo "*** tex2aspc (missing infile)"
./tex2aspc && exit 1
echo && echo "*** tex2aspc quod2.tex quod4.aspc"
-cp tests/quod2.aspc .
+cp "$test_srcdir"/tests/quod2.aspc .
rm -f quod4.aspc
./tex2aspc quod2.tex quod4.aspc || exit 1
echo && echo "*** diff quod4.aspc tests/quod4.aspc"
-diff quod4.aspc tests/quod4.aspc || exit 1
+diff quod4.aspc "$test_srcdir"/tests/quod4.aspc || exit 1