3 # This program tests for a bug in the `compute' command
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
47 cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR
48 if [ $? -ne 0 ] ; then no_result ; fi
52 if [ $? -ne 0 ] ; then no_result ; fi
55 activity="run program"
56 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/computebug.stat
57 if [ $? -ne 0 ] ; then no_result ; fi
60 activity="compare output"
61 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
62 if [ $? -ne 0 ] ; then fail ; fi