X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fweight.sh;h=107f3aac1956039bacdafbb9a364fce93f82406d;hb=e21291cb901adb36d6e44bbe19f845202908e608;hp=01bd0a318c5814b2056850c45573cfbffa2e20c2;hpb=9aff19b717bcc242e16d04c34f348fd79ebdd685;p=pspp diff --git a/tests/command/weight.sh b/tests/command/weight.sh index 01bd0a318c..107f3aac19 100755 --- a/tests/command/weight.sh +++ b/tests/command/weight.sh @@ -23,7 +23,10 @@ export LANG cleanup() { - if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then return ; fi + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -58,112 +61,105 @@ cd $TEMPDIR activity="create program" cat > $TESTFILE << EOF +SET FORMAT F8.3. data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10. weight by BVAR. descriptives AVAR /statistics all /format serial. -frequencies AVAR /statistics all /format condense. +frequencies AVAR /statistics all. EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP --testing-mode $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare results" -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b $TEMPDIR/pspp.list - <