X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fno_case_size.sh;h=0c94051a1eb8e5e8098e42d5b50cee7b5938a483;hb=43513ffd3bd31a0a26c007715a87f846a579afaa;hp=a8ff7e21c512eeb71190d55a2682b96b2caf61de;hpb=f4b04e8323d4c95c3723ca47587742e7175ae75f;p=pspp diff --git a/tests/command/no_case_size.sh b/tests/command/no_case_size.sh index a8ff7e21c5..0c94051a1e 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,7 +68,7 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" @@ -74,26 +78,38 @@ diff -b -w pspp.list - <