X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fexpressions%2Fvectors.sh;h=62749d6743fe86595031f40a63a16808383301ab;hb=29e712969d0d5bc1ee20458309dee7df2c38f1ae;hp=604920ed27035ef9f155568de1eb2e5d904012d9;hpb=3bd4593ef9a57f23062c61ec465389f749ba3089;p=pspp-builds.git diff --git a/tests/expressions/vectors.sh b/tests/expressions/vectors.sh index 604920ed..62749d67 100755 --- a/tests/expressions/vectors.sh +++ b/tests/expressions/vectors.sh @@ -4,16 +4,23 @@ TEMPDIR=/tmp/pspp-tst-$$ -here=`pwd`; +# ensure that top_srcdir and top_builddir are absolute +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +top_srcdir=`cd $top_srcdir; pwd` +top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp -# ensure that top_srcdir is absolute -cd $top_srcdir; top_srcdir=`pwd` +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH -export STAT_CONFIG_PATH=$top_srcdir/config +LANG=C +export LANG cleanup() { + cd / rm -rf $TEMPDIR } @@ -67,12 +74,13 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/vectors.stat > $TEMPDIR/vectors.err 2> $TEMPDIR/vectors.out +$SUPERVISOR $PSPP -o raw-ascii $TEMPDIR/vectors.stat > $TEMPDIR/vectors.err 2> $TEMPDIR/vectors.out if [ $? -ne 0 ] ; then fail ; fi activity="compare results" -diff -b -B $TEMPDIR/pspp.list - <