X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fprint.sh;h=9df49c13aabd59478cd75b058e666f5e5c6e72c8;hb=21f2e65c7c2555bf5422920651eab07d1e8f5154;hp=44273ece20fd3832ef1f96d8ad335de10354ac9d;hpb=cbdfa35f7fb46948d1ee8aee7b7438cf1a5fd44c;p=pspp diff --git a/tests/command/print.sh b/tests/command/print.sh index 44273ece20..9df49c13aa 100755 --- a/tests/command/print.sh +++ b/tests/command/print.sh @@ -24,7 +24,7 @@ TESTFILE=$TEMPDIR/`basename $0`.sps if [ -z "$top_builddir" ] ; then top_builddir=. ; fi if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi top_builddir=`cd $top_builddir; pwd` -PSPP=$top_builddir/src/ui/terminal/pspp +PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT # ensure that top_srcdir is absolute top_srcdir=`cd $top_srcdir; pwd` @@ -37,6 +37,10 @@ export LANG cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -101,11 +105,11 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii --testing-mode $TEMPDIR/print.stat > $TEMPDIR/errs +$SUPERVISOR $PSPP -o pspp.csv --error-file=$TEMPDIR/errs $TEMPDIR/print.stat if [ $? -ne 0 ] ; then fail ; fi activity="compare print.out" -diff $TEMPDIR/print.out - <