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 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
50 cat > $TEMPDIR/filter.stat << EOF
51 data list notable /x 1-2.
64 compute filter_$ = mod(x,2).
70 compute filter_$ = 1 - filter_$.
75 if [ $? -ne 0 ] ; then no_result ; fi
78 activity="run program"
79 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/filter.stat
80 if [ $? -ne 0 ] ; then no_result ; fi
83 activity="check results"
84 diff -B -b $TEMPDIR/pspp.list - << EOF
115 if [ $? -ne 0 ] ; then fail ; fi