gui: Merge File|Open|Syntax and File|Open|Data into File|Open.
[pspp] / tests / command / do-if.sh
index 185dc4e4fc4488cb9ad86974f776f39a5e48de21..8d2dcdae12e21653ae49bf72d725a1731f8f7795 100755 (executable)
@@ -21,8 +21,12 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
-     #rm -rf $TEMPDIR
+     rm -rf $TEMPDIR
 }
 
 
@@ -104,11 +108,10 @@ EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run test1"
-$SUPERVISOR $PSPP --testing-mode test1.pspp
+$SUPERVISOR $PSPP -o pspp.csv test1.pspp
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare test1 results"
-perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
 diff -u $TEMPDIR/test1.out $TEMPDIR/test1.expected
 if [ $? -ne 0 ] ; then fail ; fi