3 # This program tests that the T-TEST /PAIRS command works OK
4 # when there is per ANALYSIS missing data 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 * a * b * c * d *.
60 t-test /PAIRS a c with b d (PAIRED).
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 mv $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 * a * b * c * d *.
86 t-test /MISSING=analysis /PAIRS a c with b d (PAIRED).
88 if [ $? -ne 0 ] ; then no_result ; fi
91 activity="run program 2"
92 $SUPERVISOR $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