X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fprint.sh;h=8b67e835323b9a12a90bf1911008f9ad00ab67aa;hb=1d985886f778e35f8d89c4e3c897b79fde8de6ed;hp=fdfcf9cb5d798f929fa631f742df21bf0393833f;hpb=c48bf64ab648b9b761a8e0774db3672d8009c64c;p=pspp diff --git a/tests/command/print.sh b/tests/command/print.sh index fdfcf9cb5d..8b67e83532 100755 --- a/tests/command/print.sh +++ b/tests/command/print.sh @@ -3,6 +3,7 @@ # This program tests the PRINT transformation TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -55,28 +56,12 @@ activity="create program" cat > $TEMPDIR/print.stat << foobar title 'Test PRINT transformation'. -remark EOF ----------------------------------------------------------------------- -There is no test for DATA LIST FIXED since it is imagined that the -rest of the tests give it a pretty good workout. ----------------------------------------------------------------------- -EOF -remark EOF ----------------------------------------------------------------------- -Testing use of DATA LIST FREE. ----------------------------------------------------------------------- -EOF data list free table file='$TEMPDIR/data-list.data'/A B C D. print outfile="foo" table/A(f8.2) '/' B(e8.2) '/' C(n10) '/' D(rbhex16) '/'. print space a. print outfile="foo" /a b c d. list. -remark EOF ----------------------------------------------------------------------- -Testing use of DATA LIST LIST. ----------------------------------------------------------------------- -EOF data list list table file='$TEMPDIR/data-list.data'/A B C D. print table/A B C D. list. @@ -86,18 +71,18 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/print.stat > $TEMPDIR/errs +$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii --testing-mode $TEMPDIR/print.stat > $TEMPDIR/errs # Note vv --- there are errors in input. Therefore, the command must FAIL if [ $? -eq 0 ] ; then fail ; fi activity="compare error messages" diff -w $TEMPDIR/errs - <