X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fno_case_size.sh;h=9e7921225b9aaab00cac5b1f87228235272bd3d9;hb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;hp=5323b875a3c64d88cb141341e3b684bd9d6eddbd;hpb=f7da8f155edfd2029150d24b3fb26ad643d66201;p=pspp-builds.git diff --git a/tests/command/no_case_size.sh b/tests/command/no_case_size.sh index 5323b875..9e792122 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 # 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,39 +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" -perl -pi -e 's/^\s*$//g' pspp.list -diff -b -w pspp.list - <