X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Floop.sh;h=21d883e8ff312454a6a495dd4ba3c1f3e23c070a;hb=03d066d9f7e4f3d076a63e64708633bdf5e1c93c;hp=2b1383fe2e676be209077ffed075260275d6de51;hpb=dbf12b0ee6a99119c6854a663184f8df4f4c5241;p=pspp-builds.git diff --git a/tests/command/loop.sh b/tests/command/loop.sh index 2b1383fe..21d883e8 100755 --- a/tests/command/loop.sh +++ b/tests/command/loop.sh @@ -23,6 +23,10 @@ export LANG cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -127,7 +131,7 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii -e $TEMPDIR/stdout $TEMPDIR/loop.stat +$SUPERVISOR $PSPP --testing-mode -e $TEMPDIR/stdout $TEMPDIR/loop.stat if [ $? -ne 0 ] ; then no_result ; fi activity="compare stdout" @@ -137,82 +141,155 @@ EOF if [ $? -ne 0 ] ; then fail ; fi activity="compare results" -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b $TEMPDIR/pspp.list - <