3 # This program tests that the T-TEST /GROUPS command works OK
4 # when LISTWISE missing values are 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 * indep * dep1 * dep2.
61 t-test /group=indep /var=dep1 dep2.
63 if [ $? -ne 0 ] ; then no_result ; fi
66 activity="run program 1"
67 $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
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
74 activity="create program 2"
75 cat > $TEMPDIR/out.stat <<EOF
76 data list list /id * indep * dep1 * dep2 *.
87 t-test /missing=listwise,exclude /group=indep /var=dep1, dep2.
89 if [ $? -ne 0 ] ; then no_result ; fi
91 activity="run program 2"
92 $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
93 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