X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Fbugs%2Fcomputebug.sh;h=01675aea8bab812e064114aa42a8ff2dc8246927;hb=e1ca4ab566c6f8317ba8ff0fd27046b82b4acd63;hp=ecc6cb4e33691cf2537b2cda1984ff65865cc1bd;hpb=c912ba11ed1d84c40085177439ac7086f2a43b20;p=pspp diff --git a/tests/bugs/computebug.sh b/tests/bugs/computebug.sh index ecc6cb4e33..01675aea8b 100755 --- a/tests/bugs/computebug.sh +++ b/tests/bugs/computebug.sh @@ -1,8 +1,9 @@ #!/bin/sh -# This program tests .... +# This program tests for a bug in the `compute' command TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -42,21 +43,23 @@ pass() } mkdir -p $TEMPDIR -cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR -cd $TEMPDIR +activity="copy file" +cp $top_srcdir/tests/bugs/computebug.stat $TEMPDIR +if [ $? -ne 0 ] ; then no_result ; fi +activity="chdir" +cd $TEMPDIR if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $top_srcdir/src/pspp -o raw-ascii $TEMPDIR/computebug.stat +$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/computebug.stat if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out - if [ $? -ne 0 ] ; then fail ; fi pass;