#!/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