X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fnpar-chisquare.sh;h=5a1b8af17952375323ae25b754428902d3d476d2;hb=3e2bf013a731344daed7ab206d4a3c2460688208;hp=5e2e45cf2ef7015f2bf588f0172b431425c4088b;hpb=08e4a9535a7e1de9cc4b6e619e70805ab951b323;p=pspp-builds.git diff --git a/tests/command/npar-chisquare.sh b/tests/command/npar-chisquare.sh index 5e2e45cf..5a1b8af1 100755 --- a/tests/command/npar-chisquare.sh +++ b/tests/command/npar-chisquare.sh @@ -95,7 +95,8 @@ $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output 1" -diff $TEMPDIR/pspp.list - << EOF +perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list +diff -b $TEMPDIR/pspp.list - << EOF 1.1 NPAR TESTS. x +--------#----------+----------+--------+ | #Observed N|Expected N|Residual| @@ -108,7 +109,6 @@ diff $TEMPDIR/pspp.list - << EOF | 5.00# 1| 2.33| -1.33| |Total # 14| | | +--------#----------+----------+--------+ - 1.2 NPAR TESTS. y +--------#----------+----------+--------+ | #Observed N|Expected N|Residual| @@ -119,7 +119,6 @@ diff $TEMPDIR/pspp.list - << EOF | 4.00# 2| 3.50| -1.50| |Total # 14| | | +--------#----------+----------+--------+ - 1.3 NPAR TESTS. Test Statistics +-----------#-----+-----+ | # x | y | @@ -128,7 +127,6 @@ diff $TEMPDIR/pspp.list - << EOF |df # 5| 3| |Asymp. Sig.# .678| .112| +-----------#-----+-----+ - 2.1 NPAR TESTS. y +--------#----------+----------+--------+ | #Observed N|Expected N|Residual| @@ -139,7 +137,6 @@ diff $TEMPDIR/pspp.list - << EOF | 4.00# 2| 3.50| -1.50| |Total # 14| | | +--------#----------+----------+--------+ - 2.2 NPAR TESTS. Test Statistics +-----------#------+ | # y | @@ -148,7 +145,6 @@ diff $TEMPDIR/pspp.list - << EOF |df # 3| |Asymp. Sig.# .014| +-----------#------+ - 3.1 NPAR TESTS. Frequencies +-----#---------------------------------------#---------------------------------------+ | # x # y | @@ -160,7 +156,6 @@ diff $TEMPDIR/pspp.list - << EOF |3 # 4.00| 2| 1.58| .42# 4.00| 2| 1.11| .89| |Total# | 10| | # | 7| | | +-----#--------+----------+----------+--------#--------+----------+----------+--------+ - 3.2 NPAR TESTS. Test Statistics +-----------#----+-----+ | # x | y | @@ -169,7 +164,6 @@ diff $TEMPDIR/pspp.list - << EOF |df # 2| 2| |Asymp. Sig.#.936| .127| +-----------#----+-----+ - EOF if [ $? -ne 0 ] ; then fail ; fi @@ -202,7 +196,8 @@ $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE > $TEMPDIR/output if [ $? -eq 0 ] ; then no_result ; fi activity="compare errors 2" -diff $TEMPDIR/output - << EOF +perl -pi -e 's/^\s*$//g' $TEMPDIR/output +diff -b $TEMPDIR/output - << EOF error: CHISQUARE test specified 6 expected values, but 4 distinct values were encountered in variable y. EOF if [ $? -ne 0 ] ; then fail ; fi @@ -241,7 +236,8 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="compare output 3" -diff $TEMPDIR/pspp.list - <