Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / command / trimmed-mean.sh
index eb4b8f10c9eb50bfcc530f0fe2814b671215d6d9..e2a5af71ae4597e0e1a7b8d7c2ce80ff1cffd56a 100755 (executable)
@@ -18,9 +18,16 @@ 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
 }
@@ -74,7 +81,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$SUPERVISOR $PSPP -o raw-ascii $TESTFILE
+$SUPERVISOR $PSPP --testing-mode $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
@@ -103,8 +110,8 @@ diff -b  $TEMPDIR/pspp.list - << EOF
 #                                              #Statistic|Std. Error#
 #==============================================#=========#==========#
 #X Mean                                        #   2.02  |   .034   #
-#  95% Confidence Interval for Mean Lower Bound#  2.021  |          #
-#                                   Upper Bound#  2.017  |          #
+#  95% Confidence Interval for Mean Lower Bound#  1.952  |          #
+#                                   Upper Bound#  2.087  |          #
 #  5% Trimmed Mean                             #   2.00  |          #
 #  Median                                      #   2.00  |          #
 #  Variance                                    #   .058  |          #