Fix corrupted .sav files on w32 builds
[pspp-builds.git] / tests / stats / descript-basic.sh
index 0a8dc114a29c2f342c245c0b4ca287aa1270517f..82b8cdaa24b2ab1d60641a2a6e18d760f94b7055 100755 (executable)
@@ -16,11 +16,17 @@ top_srcdir=`cd $top_srcdir; pwd`
 STAT_CONFIG_PATH=$top_srcdir/config
 export STAT_CONFIG_PATH
 
+LANG=C
+export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
-#     rm -rf $TEMPDIR
+     rm -rf $TEMPDIR
 }
 
 
@@ -76,7 +82,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$SUPERVISOR $PSPP -o raw-ascii $TEMPDIR/descript.stat
+$SUPERVISOR $PSPP --testing-mode $TEMPDIR/descript.stat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"