3 # This program tests ....
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 activity="create program"
51 cat > $TESTFILE << EOF
52 data list notable /X 1-2.
65 compute FILTER_$ = mod(x,2).
71 compute filter_$ = 1 - filter_$.
76 if [ $? -ne 0 ] ; then no_result ; fi
79 activity="run program"
80 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
81 if [ $? -ne 0 ] ; then no_result ; fi
84 activity="check results"
85 diff -B -b $TEMPDIR/pspp.list - << EOF
116 if [ $? -ne 0 ] ; then fail ; fi