3 # This program tests that the T-TEST
4 # works ok with a TEMPORARY transformation
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"
50 cat > $TEMPDIR/out.stat <<EOF
51 data list list /ind * x * .
61 t-test /groups=ind(1,2) /var x.
63 if [ $? -ne 0 ] ; then no_result ; fi
66 activity="run program"
67 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
68 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="copy output"
71 cp $TEMPDIR/pspp.list $TEMPDIR/first.list
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="create program 2"
75 cat > $TEMPDIR/out.stat <<EOF
76 data list list /ind * x * .
90 t-test /groups=ind(1,2) /var x.
92 if [ $? -ne 0 ] ; then no_result ; fi
94 activity="compare output"
95 diff -B -b $TEMPDIR/pspp.list $TEMPDIR/first.list
96 if [ $? -ne 0 ] ; then fail ; fi