X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fexamine-missing2.sh;h=c95cca1be8d6367d49bc66a4a79b2dcd5e8ebe0f;hb=03d066d9f7e4f3d076a63e64708633bdf5e1c93c;hp=965b600ee230f2eff7e9adf5e8bcbc69d2cfba95;hpb=6ba6662c69e868290d1e514ffe65ef447e9263d6;p=pspp-builds.git diff --git a/tests/bugs/examine-missing2.sh b/tests/bugs/examine-missing2.sh index 965b600e..c95cca1b 100755 --- a/tests/bugs/examine-missing2.sh +++ b/tests/bugs/examine-missing2.sh @@ -59,7 +59,7 @@ mkdir -p $TEMPDIR cd $TEMPDIR -activity="create program" +activity="create program 1" cat > $TESTFILE << EOF DATA LIST LIST /x * y *. BEGIN DATA. @@ -77,42 +77,57 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi -activity="run program" +activity="run program 1" $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 - < $TESTFILE << EOF +DATA LIST LIST /X *. +BEGIN DATA. +99 +99 +5.00 +END DATA. + +MISSING VALUE X (99). + +EXAMINE /x + /PERCENTILES=HAVERAGE. + + +EOF +if [ $? -ne 0 ] ; then no_result ; fi + + +activity="run program 2" +$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE +if [ $? -ne 0 ] ; then fail ; fi + + pass;