diff options
Diffstat (limited to 'Build/source/utils/autosp/autosp-src/autosp.test')
-rwxr-xr-x | Build/source/utils/autosp/autosp-src/autosp.test | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/utils/autosp/autosp-src/autosp.test b/Build/source/utils/autosp/autosp-src/autosp.test index 2b04f6601f6..d4610464610 100755 --- a/Build/source/utils/autosp/autosp-src/autosp.test +++ b/Build/source/utils/autosp/autosp-src/autosp.test @@ -1,8 +1,15 @@ #! /bin/sh -# Copyright 2016-2017 Karl Berry <tex-live@tug.org> + +# Copyright 2016 Karl Berry <tex-live@tug.org> # Copyright 2015 Peter Breitenlohner <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 && echo "*** autosp --help" ./autosp --help || exit 1 @@ -13,9 +20,9 @@ echo && echo "*** autosp -dd (missing infile)" ./autosp -dd && exit 1 echo && echo "*** autosp tests/quod2.aspc quod2.aspc" -cp $srcdir/$AUTOSP_TREE/tests/quod2.aspc . +cp $test_srcdir/tests/quod2.aspc . rm -f quod2.tex ./autosp quod2.aspc || exit 1 echo && echo "*** diff quod2.tex tests/quod2.tex" -diff quod2.tex $srcdir/$AUTOSP_TREE/tests/quod2.tex || exit 1 +diff quod2.tex $test_srcdir/tests/quod2.tex || exit 1 |