Complete re-implementation of the EXAMINE command.
[pspp-builds.git] / tests / command / examine.sh
index 7c1f394221efdc48ff0612478a819003cfcfc16a..095ee0fb93987fcc9735139c39618780c61acabd 100755 (executable)
@@ -22,6 +22,10 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }
@@ -94,7 +98,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
 
 # NOTE:  In the following data: Only the extreme values have been checked
@@ -144,11 +148,11 @@ Case#  QUALITY        W    BRAND
 #=========================#===========#=====#
 #Breaking Strain Highest 1#         12| 7.00#
 #                        2#         16| 6.00#
-#                               3#         14| 5.00#
+#                               3#          7| 5.00#
 #               ----------#-----------+-----#
-#                 Lowest 1#          4| 1.00#
+#                 Lowest 1#          3| 1.00#
 #                        2#          3| 1.00#
-#                        3#          3| 1.00#
+#                        3#          4| 1.00#
 #=========================#===========#=====#
 2.3 EXAMINE.  Descriptives
 #============================================================#=========#==========#
@@ -184,20 +188,20 @@ Case#  QUALITY        W    BRAND
 #======================================#===========#=====#
 #                Manufacturer          #Case Number|Value#
 #======================================#===========#=====#
-#Breaking Strain Aspeger      Highest 1#          6| 4.00#
-#                                     2#          5| 4.00#
+#Breaking Strain Aspeger      Highest 1#          5| 4.00#
+#                                     2#          6| 4.00#
 #                                     3#          1| 3.00#
 #                            ----------#-----------+-----#
-#                              Lowest 1#          4| 1.00#
+#                              Lowest 1#          3| 1.00#
 #                                     2#          3| 1.00#
-#                                     3#          3| 1.00#
+#                                     3#          4| 1.00#
 #               -----------------------#-----------+-----#
 #                Bloggs       Highest 1#          7| 5.00#
 #                                     2#          9| 4.00#
 #                                     3#          9| 4.00#
 #                            ----------#-----------+-----#
-#                              Lowest 1#         10| 2.00#
-#                                     2#          8| 2.00#
+#                              Lowest 1#          8| 2.00#
+#                                     2#         10| 2.00#
 #                                     3#         11| 3.00#
 #               -----------------------#-----------+-----#
 #                       Charlies     Highest 1#         12| 7.00#