X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcommand%2Fno_case_size.sh;h=a03c617b6974521cdccde64b9e1301c3e2a48af8;hb=638a86001fe7a237bd6c19a181d796305290d72a;hp=9e4ac2400ca5cdf280cfbbfa8fe2521dd62cfb99;hpb=44d7b18d5c3d0a806fe1a29658445254f2376600;p=pspp diff --git a/tests/command/no_case_size.sh b/tests/command/no_case_size.sh index 9e4ac2400c..a03c617b69 100755 --- a/tests/command/no_case_size.sh +++ b/tests/command/no_case_size.sh @@ -7,10 +7,14 @@ TEMPDIR=/tmp/pspp-tst-$$ TESTFILE=$TEMPDIR/`basename $0`.sps -here=`pwd`; +# ensure that top_builddir are absolute +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT # ensure that top_srcdir is absolute -cd $top_srcdir; top_srcdir=`pwd` +top_srcdir=`cd $top_srcdir; pwd` STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH @@ -64,38 +68,42 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" -diff -b -B -w pspp.list - <