X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fuse.sh;h=070e29ee36d06fa81906d945f5e454c079f9db06;hb=a45fa3f76f32c391c756b7e4334330458d74a1ab;hp=18b66f0f158054209c6b9eec653c08c2a062b663;hpb=af4066391f20365e210460a736b1b02efe194da6;p=pspp diff --git a/tests/command/use.sh b/tests/command/use.sh index 18b66f0f15..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` @@ -79,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