X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fnpar-chisquare.sh;h=1df381b1568d6f809c9c85b09fe7d1af997eb845;hb=51010fcf5cc308367c1fe3fafa785a3d2216b03d;hp=60503a9c67a5b2034ebb6124005d324776ea06d4;hpb=a7fb79e81f6e2a0dfddc61e91f207609e31a4632;p=pspp-builds.git diff --git a/tests/command/npar-chisquare.sh b/tests/command/npar-chisquare.sh index 60503a9c..1df381b1 100755 --- a/tests/command/npar-chisquare.sh +++ b/tests/command/npar-chisquare.sh @@ -26,6 +26,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -91,12 +92,12 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program 1" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output 1" perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff $TEMPDIR/pspp.list - << EOF +diff -b $TEMPDIR/pspp.list - << EOF 1.1 NPAR TESTS. x +--------#----------+----------+--------+ | #Observed N|Expected N|Residual| @@ -192,12 +193,12 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program 2" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE > $TEMPDIR/output +$SUPERVISOR $PSPP --testing-mode $TESTFILE > $TEMPDIR/output if [ $? -eq 0 ] ; then no_result ; fi activity="compare errors 2" perl -pi -e 's/^\s*$//g' $TEMPDIR/output -diff $TEMPDIR/output - << EOF +diff -b $TEMPDIR/output - << EOF error: CHISQUARE test specified 6 expected values, but 4 distinct values were encountered in variable y. EOF if [ $? -ne 0 ] ; then fail ; fi @@ -231,13 +232,13 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program 3" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output 3" perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list -diff $TEMPDIR/pspp.list - <