X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fuse.sh;h=070e29ee36d06fa81906d945f5e454c079f9db06;hb=964bc1c0e1b3e490a893583e0598418ce25d5f14;hp=f81b2264121b4545e78b47eabd5b372130beda78;hpb=9aff19b717bcc242e16d04c34f348fd79ebdd685;p=pspp diff --git a/tests/command/use.sh b/tests/command/use.sh index f81b226412..070e29ee36 100755 --- a/tests/command/use.sh +++ b/tests/command/use.sh @@ -9,7 +9,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` @@ -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 $TEMPDIR/filter.stat +$SUPERVISOR $PSPP -o pspp.csv $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