3 # This program tests that the T-TEST /GROUPS command works OK
4 # when ANALYSIS 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
51 activity="create program 1"
53 data list list /id * indep * dep1 * dep2 *.
62 t-test /group=indep /var=dep1, dep2.
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
75 activity="create program 2"
77 data list list /id * indep * dep1 * dep2.
88 * Note that if the independent variable is missing, then it's implicitly
91 t-test /missing=analysis /group=indep /var=dep1 dep2.
93 if [ $? -ne 0 ] ; then no_result ; fi
95 activity="run program 2"
96 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
97 if [ $? -ne 0 ] ; then no_result ; fi
100 activity="compare outputs"
101 diff $TEMPDIR/ref.list $TEMPDIR/pspp.list
102 if [ $? -ne 0 ] ; then fail ; fi