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 STAT_CONFIG_PATH=$top_srcdir/config
15 export STAT_CONFIG_PATH
51 activity="create program 1"
53 data list list /id * x1 * x2.
62 t-test /testval=3.0 /var=x1 x2.
64 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="run program 1"
68 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="copy output"
72 cp $TEMPDIR/pspp.list $TEMPDIR/ref.list
73 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="create program 2"
78 data list list /id * x1 * x2.
88 MISSING VALUES x2(99).
90 t-test /missing=listwise /testval=3.0 /var=x1 x2.
92 if [ $? -ne 0 ] ; then no_result ; fi
94 activity="run program 2"
95 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
96 if [ $? -ne 0 ] ; then no_result ; fi
98 activity="compare outputs"
99 diff $TEMPDIR/ref.list $TEMPDIR/pspp.list
100 if [ $? -ne 0 ] ; then fail ; fi