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-$$
7 TESTFILE=$TEMPDIR/`basename $0`.sps
11 # ensure that top_srcdir is absolute
12 cd $top_srcdir; top_srcdir=`pwd`
14 export STAT_CONFIG_PATH=$top_srcdir/config
50 activity="create program 1"
52 data list list /id * x1 * x2.
61 t-test /testval=3.0 /var=x1 x2.
63 if [ $? -ne 0 ] ; then no_result ; fi
66 activity="run program 1"
67 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
68 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="copy output"
71 cp $TEMPDIR/pspp.list $TEMPDIR/ref.list
72 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="create program 2"
77 data list list /id * x1 * x2.
87 MISSING VALUES x2(99).
89 t-test /missing=listwise /testval=3.0 /var=x1 x2.
91 if [ $? -ne 0 ] ; then no_result ; fi
93 activity="run program 2"
94 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
95 if [ $? -ne 0 ] ; then no_result ; fi
97 activity="compare outputs"
98 diff $TEMPDIR/ref.list $TEMPDIR/pspp.list
99 if [ $? -ne 0 ] ; then fail ; fi