X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fget-data-gnm.sh;h=08cad6a3b802fdbe3421aed6fda86730354b3039;hb=173d1687aea88e0e5e1b1d8615ed68ebefb15d08;hp=70cb24d136a2b5fd04b63833ab9a677a9bec6938;hpb=c725a4f64718ef1ee4139c27c94b2eb6447b51b4;p=pspp diff --git a/tests/command/get-data-gnm.sh b/tests/command/get-data-gnm.sh index 70cb24d136..08cad6a3b8 100755 --- a/tests/command/get-data-gnm.sh +++ b/tests/command/get-data-gnm.sh @@ -1,6 +1,6 @@ #!/bin/sh -# This program tests that pspp can read gnumeric files +# This program tests that pspp can read Gnumeric files TEMPDIR=/tmp/pspp-tst-$$ TESTFILE=$TEMPDIR/`basename $0`.sps @@ -11,7 +11,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 @@ -26,6 +26,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -86,125 +87,99 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program 1" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output 1" -diff $TEMPDIR/pspp.list - < /dev/null +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE > /dev/null if [ $? -ne 0 ] ; then fail ; fi activity="compare output 2" -diff $TEMPDIR/pspp.list - <