X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fprint.sh;h=fdfcf9cb5d798f929fa631f742df21bf0393833f;hb=ca1feaeed4961242699d0b7ba61def0c58515ddd;hp=cd75830479946308af3cc300e6ace53ff62e0e2c;hpb=76939ed1da94300a0d82629124544d41c60c1fbe;p=pspp-builds.git diff --git a/tests/command/print.sh b/tests/command/print.sh index cd758304..fdfcf9cb 100755 --- a/tests/command/print.sh +++ b/tests/command/print.sh @@ -47,12 +47,12 @@ cd $TEMPDIR # Copy this file --- it's shared with another test activity="create data" -cp $here/data-list.data $TEMPDIR +cp $top_srcdir/tests/data-list.data $TEMPDIR if [ $? -ne 0 ] ; then no_result ; fi activity="create program" -cat > $TEMPDIR/print.stat < $TEMPDIR/print.stat << foobar title 'Test PRINT transformation'. remark EOF @@ -81,43 +81,36 @@ data list list table file='$TEMPDIR/data-list.data'/A B C D. print table/A B C D. list. -EOF_print +foobar if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$here/../src/pspp -o raw-ascii $TEMPDIR/print.stat > $TEMPDIR/errs +$SUPERVISOR $here/../src/pspp -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 - <