diff options
Diffstat (limited to 'Build/source/utils/axodraw2/axodraw2-src/axohelp.test')
-rwxr-xr-x | Build/source/utils/axodraw2/axodraw2-src/axohelp.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/utils/axodraw2/axodraw2-src/axohelp.test b/Build/source/utils/axodraw2/axodraw2-src/axohelp.test new file mode 100755 index 00000000000..b282d3bd0c2 --- /dev/null +++ b/Build/source/utils/axodraw2/axodraw2-src/axohelp.test @@ -0,0 +1,22 @@ +#!/bin/sh -vx + +# Copyright (C) 2018 John Collins (jcc8@psu.edu) +# 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 Running axohelp on test document ... +cp $test_srcdir/test* . +./axohelp test \ + || { echo axohelp failed to run correctly ; exit 1; } + +echo Checking result ... +diff test.ax2-std test.ax2 \ + || { echo The .ax2 file created by axohelp was incorrect; exit 1; } + +echo Success, so I will remove generated file test.ax2 +rm test.ax2 |