3 # This program tests that the T-TEST /GROUPS command works OK
4 # when LISTWISE missing values are 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
52 activity="create program 1"
54 data list list /id * indep * dep1 * dep2.
64 t-test /group=indep /var=dep1 dep2.
66 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="run program 1"
70 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
71 if [ $? -ne 0 ] ; then no_result ; fi
73 activity="copy output"
74 cp $TEMPDIR/pspp.list $TEMPDIR/ref.list
75 if [ $? -ne 0 ] ; then no_result ; fi
77 activity="create program 2"
79 data list list /id * indep * dep1 * dep2 *.
90 t-test /missing=listwise,exclude /group=indep /var=dep1, dep2.
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
99 activity="compare outputs"
100 diff $TEMPDIR/ref.list $TEMPDIR/pspp.list
101 if [ $? -ne 0 ] ; then fail ; fi