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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
49 cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR
50 if [ $? -ne 0 ] ; then no_result ; fi
54 if [ $? -ne 0 ] ; then no_result ; fi
57 activity="run program"
58 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/computebug.stat
59 if [ $? -ne 0 ] ; then no_result ; fi
62 activity="compare output"
63 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
64 if [ $? -ne 0 ] ; then fail ; fi