X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fweight.sh;h=107f3aac1956039bacdafbb9a364fce93f82406d;hb=18068527645fe7a23c7ea3b746ad3280bfa75b9e;hp=3b30d530478e826141563df32ea3fe5f8cb9cd63;hpb=888d0f91d57e0c3c5a4206c30ac71eb87bf44227;p=pspp-builds.git diff --git a/tests/command/weight.sh b/tests/command/weight.sh index 3b30d530..107f3aac 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 -o raw-ascii $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 - <