X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcommand%2Fuse.sh;h=b6bc661ffdff590e7b8546dea0bae594e425a9c9;hb=943d4b7f3171402af7b7cd991d66b1dd6e625446;hp=65532f44f5d0eb29dae08f3301445254b6317cde;hpb=cff2677657ba2a37589734f25c494c77ca137abd;p=pspp-builds.git diff --git a/tests/command/use.sh b/tests/command/use.sh index 65532f44..b6bc661f 100755 --- a/tests/command/use.sh +++ b/tests/command/use.sh @@ -20,6 +20,10 @@ export STAT_CONFIG_PATH cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -75,24 +79,23 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP -B $STAT_CONFIG_PATH --testing-mode -o raw-ascii $TEMPDIR/filter.stat +$SUPERVISOR $PSPP -B $STAT_CONFIG_PATH --testing-mode $TEMPDIR/filter.stat if [ $? -ne 0 ] ; then no_result ; fi activity="check results" -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b $TEMPDIR/pspp.list - << EOF - X --- - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 +diff -c $TEMPDIR/pspp.csv - << EOF +Table: Data List +X +1 +2 +3 +4 +5 +6 +7 +8 +9 10 EOF if [ $? -ne 0 ] ; then fail ; fi