X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fshbang.sh;h=607e4a77ddbb80949ecb1c81049a11e7bc9f25df;hb=04ffc94fe6e7940dd49bf3185048ba99aee58442;hp=826d5dc4d898cff3983404316b677d5fc84259f7;hpb=eccddce2d2e67e7ddcdbd93d969ef4c5b6efdb28;p=pspp diff --git a/tests/bugs/shbang.sh b/tests/bugs/shbang.sh index 826d5dc4d8..607e4a77dd 100755 --- a/tests/bugs/shbang.sh +++ b/tests/bugs/shbang.sh @@ -12,7 +12,7 @@ if [ -z "$top_builddir" ] ; then top_builddir=. ; fi top_srcdir=`cd $top_srcdir; pwd` top_builddir=`cd $top_builddir; pwd` -PSPP=$top_builddir/src/ui/terminal/pspp +PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH @@ -69,17 +69,17 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP --testing-mode -e /dev/null $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv -e /dev/null $TESTFILE if [ $? -ne 0 ] ; then fail ; fi activity="compare output" -perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff -b -w $TEMPDIR/pspp.list - << EOF - a --------- - 1.00 - 2.00 +perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.csv +diff -b -w $TEMPDIR/pspp.csv - << EOF +Table: Data List +a +1.00 +2.00 EOF if [ $? -ne 0 ] ; then fail ; fi