3 # This program tests for a bug in the `compute' command
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
48 cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR
49 if [ $? -ne 0 ] ; then no_result ; fi
53 if [ $? -ne 0 ] ; then no_result ; fi
56 activity="run program"
57 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/computebug.stat
58 if [ $? -ne 0 ] ; then no_result ; fi
61 activity="compare output"
62 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
63 if [ $? -ne 0 ] ; then fail ; fi