Rewrite PSPP output engine.
[pspp-builds.git] / tests / bugs / examine-missing2.sh
index 2cd6c14a6a00d930722149a77d5fc5da0d86fe7e..c95cca1be8d6367d49bc66a4a79b2dcd5e8ebe0f 100755 (executable)
@@ -82,36 +82,24 @@ $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare results"
-perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff -b  $TEMPDIR/pspp.list - <<EOF
-1.1 DATA LIST.  Reading free-form data from INLINE.
-+--------+------+
-|Variable|Format|
-#========#======#
-|x       |F8.0  |
-|y       |F8.0  |
-+--------+------+
-2.1 EXAMINE.  Case Processing Summary
-#=#===============================#
-# #             Cases             #
-# #----------+----------+---------#
-# #   Valid  |  Missing |  Total  #
-# #-+--------+-+--------+-+-------#
-# #N| Percent|N| Percent|N|Percent#
-#=#=#========#=#========#=#=======#
-#x#6|85.7143%|1|14.2857%|7|   100%#
-#=#=#========#=#========#=#=======#
-2.2 EXAMINE.  Case Processing Summary
-#==========#===============================#
-#          #             Cases             #
-#          #----------+----------+---------#
-#          #   Valid  |  Missing |  Total  #
-#          #-+--------+-+--------+-+-------#
-#      y   #N| Percent|N| Percent|N|Percent#
-#==========#=#========#=#========#=#=======#
-#x     1.00#4|    100%|0|      0%|4|   100%#
-#      2.00#2|66.6667%|1|33.3333%|3|   100%#
-#==========#=#========#=#========#=#=======#
+diff -c $TEMPDIR/pspp.csv - <<EOF
+Table: Reading free-form data from INLINE.
+Variable,Format
+x,F8.0
+y,F8.0
+
+Table: Case Processing Summary
+,Cases,,,,,
+,Valid,,Missing,,Total,
+,N,Percent,N,Percent,N,Percent
+x,6,85.7143%,1,14.2857%,7,100%
+
+Table: Case Processing Summary
+,,Cases,,,,,
+,,Valid,,Missing,,Total,
+,y,N,Percent,N,Percent,N,Percent
+x,1.00,4,100%,0,0%,4,100%
+,2.00,2,66.6667%,1,33.3333%,3,100%
 EOF
 if [ $? -ne 0 ] ; then fail ; fi