3 # This program tests that the T-TEST /GROUPS command works OK
4 # when ANALYSIS 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 *.
60 t-test /group=indep /var=dep1, dep2.
62 if [ $? -ne 0 ] ; then no_result ; fi
65 activity="run program 1"
66 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
67 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="copy output"
70 cp $TEMPDIR/pspp.list $TEMPDIR/ref.list
71 if [ $? -ne 0 ] ; then no_result ; fi
73 activity="create program 2"
74 cat > $TEMPDIR/out.stat <<EOF
75 data list list /id * indep * dep1 * dep2.
86 * Note that if the independent variable is missing, then it's implicitly
89 t-test /missing=analysis /group=indep /var=dep1 dep2.
91 if [ $? -ne 0 ] ; then no_result ; fi
93 activity="run program 2"
94 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
95 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