3 # This program tests that the T-TEST
4 # works ok with a TEMPORARY transformation
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"
53 data list list /ind * x * .
63 t-test /groups=ind(1,2) /var x.
65 if [ $? -ne 0 ] ; then no_result ; fi
68 activity="run program"
69 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
70 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="copy output"
73 cp $TEMPDIR/pspp.list $TEMPDIR/first.list
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="create program 2"
78 data list list /ind * x * .
92 t-test /groups=ind(1,2) /var x.
94 if [ $? -ne 0 ] ; then no_result ; fi
96 activity="compare output"
97 diff -B -b $TEMPDIR/pspp.list $TEMPDIR/first.list
98 if [ $? -ne 0 ] ; then fail ; fi