3 # This program tests that the T-TEST /TESTVAL command works OK
4 # when there are listwise missing values involved.
6 TEMPDIR=/tmp/pspp-tst-$$
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program 1"
50 cat > $TEMPDIR/out.stat <<EOF
51 data list list /id * x1 * x2.
60 t-test /testval=3.0 /var=x1 x2.
62 if [ $? -ne 0 ] ; then no_result ; fi
65 activity="run program 1"
66 $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
67 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="copy output"
70 cp $TEMPDIR/pspp.list $TEMPDIR/ref.list
71 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="create program 2"
75 cat > $TEMPDIR/out.stat <<EOF
76 data list list /id * x1 * x2.
86 MISSING VALUES x2(99).
88 t-test /missing=listwise /testval=3.0 /var=x1 x2.
90 if [ $? -ne 0 ] ; then no_result ; fi
92 activity="run program 2"
93 $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
94 if [ $? -ne 0 ] ; then no_result ; fi
96 activity="compare outputs"
97 diff $TEMPDIR/ref.list $TEMPDIR/pspp.list
98 if [ $? -ne 0 ] ; then fail ; fi