X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fexpressions%2Fvariables.sh;h=8ffe3c8d87bebd533d39f84d1435d7744ed83ccb;hb=9f4661992f4b481c6dafa6fd53c94ecfe7b3af8c;hp=9f325c7c07e95c2c1306e76383ec47e47405bdea;hpb=e32e05bf60402d3229e45adcc9b4c8d5bb27d174;p=pspp-builds.git diff --git a/tests/expressions/variables.sh b/tests/expressions/variables.sh index 9f325c7c..8ffe3c8d 100755 --- a/tests/expressions/variables.sh +++ b/tests/expressions/variables.sh @@ -4,16 +4,22 @@ 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` - -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH +LANG=C +export LANG cleanup() { + cd / rm -rf $TEMPDIR } @@ -91,12 +97,13 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/variables.stat > $TEMPDIR/variables.err 2> $TEMPDIR/variables.out +$SUPERVISOR $PSPP --testing-mode $TEMPDIR/variables.stat > $TEMPDIR/variables.err 2> $TEMPDIR/variables.out if [ $? -ne 0 ] ; then fail ; fi activity="compare results" -diff -b -B $TEMPDIR/pspp.list - <