X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fbig-input.sh;h=104cca5d13a46c169f7e0e2a3f5f07963bd44330;hb=c59b9819031877e1837b1294bb23671bfde9b433;hp=2d1ade753174523590aa6414c44020ccbe373b92;hpb=44d7b18d5c3d0a806fe1a29658445254f2376600;p=pspp diff --git a/tests/bugs/big-input.sh b/tests/bugs/big-input.sh index 2d1ade7531..104cca5d13 100755 --- a/tests/bugs/big-input.sh +++ b/tests/bugs/big-input.sh @@ -7,10 +7,13 @@ 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` # 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 @@ -67,7 +70,7 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/foo.sps > /dev/null +$SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TEMPDIR/foo.sps > /dev/null if [ $? -ne 0 ] ; then fail ; fi pass;