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-$$
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 * a * b * c * d *.
63 t-test /PAIRS a c with b d (PAIRED).
65 if [ $? -ne 0 ] ; then no_result ; fi
68 activity="run program 1"
69 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
70 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="copy output"
73 mv $TEMPDIR/pspp.list $TEMPDIR/ref.list
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="create program 2"
78 data list list /id * a * b * c * d *.
89 t-test /MISSING=analysis /PAIRS a c with b d (PAIRED).
91 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