X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Fcommand%2Fweight.sh;h=acd9e458a882798dbecc41cd43c5dcfff2cba243;hb=1d985886f778e35f8d89c4e3c897b79fde8de6ed;hp=3b71997f03d54cc25f400d563e93ae5b9597232e;hpb=726da17feb397b5e0ae5562873ddd12293db878b;p=pspp diff --git a/tests/command/weight.sh b/tests/command/weight.sh index 3b71997f03..acd9e458a8 100755 --- a/tests/command/weight.sh +++ b/tests/command/weight.sh @@ -3,6 +3,7 @@ # This program tests the WEIGHT command TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -46,7 +47,7 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program" -cat > $TEMPDIR/weight.stat < $TESTFILE << EOF data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10. weight by BVAR. @@ -58,12 +59,12 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat +$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare results" diff -B -b $TEMPDIR/pspp.list - <