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
50 cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR
51 if [ $? -ne 0 ] ; then no_result ; fi
55 if [ $? -ne 0 ] ; then no_result ; fi
58 activity="run program"
59 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/computebug.stat
60 if [ $? -ne 0 ] ; then no_result ; fi
63 activity="compare output"
64 perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
65 diff -b -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
66 if [ $? -ne 0 ] ; then fail ; fi