Fixed bug #13024
[pspp-builds.git] / tests / test_template
index 664549cdf3b9cf1df9c6e04eb756b46e339f767e..a0f70b05405bc8bb7c591dd1f5ed9e11b2a208a7 100755 (executable)
@@ -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