X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest_template;h=a0f70b05405bc8bb7c591dd1f5ed9e11b2a208a7;hb=897a260ef7a8b954d56698cc40241a3197127505;hp=664549cdf3b9cf1df9c6e04eb756b46e339f767e;hpb=c1edead52e3b254bc305afd1d647b94bd10ca5d4;p=pspp diff --git a/tests/test_template b/tests/test_template index 664549cdf3..a0f70b0540 100755 --- a/tests/test_template +++ b/tests/test_template @@ -3,6 +3,7 @@ # This program tests .... TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -14,6 +15,10 @@ export STAT_CONFIG_PATH=$top_srcdir/config cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi rm -rf $TEMPDIR } @@ -46,10 +51,15 @@ mkdir -p $TEMPDIR cd $TEMPDIR put test set up here ... +if [ $? -ne 0 ] ; then no_result ; fi + +activity="run program" +$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi + put test here if [ $? -ne 0 ] ; then fail ; fi