X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fexpressions%2Frandist.sh;h=b1c9f440317e53b8a4a824f325cb28782bc7f839;hb=7496b3a78aafe5c66790f805ef2de1437340a73a;hp=bb02172f48ba65f2882f1515e00dd2cdcf0a1ff2;hpb=b08603f631a2d998d8c604692fdf13669bb5e510;p=pspp-builds.git diff --git a/tests/expressions/randist.sh b/tests/expressions/randist.sh index bb02172f..b1c9f440 100755 --- a/tests/expressions/randist.sh +++ b/tests/expressions/randist.sh @@ -4,10 +4,13 @@ TEMPDIR=/tmp/pspp-tst-$$ -here=`pwd`; +# ensure that top_srcdir and top_builddir are absolute +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +top_srcdir=`cd $top_srcdir; pwd` +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` STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH @@ -57,7 +60,7 @@ perl $top_srcdir/tests/expressions/randist/randist.pl \ if [ $? -ne 0 ] ; then no_result ; fi activity="run command file" -$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii \ +$SUPERVISOR $PSPP --testing-mode -o raw-ascii \ $TEMPDIR/randist.pspp >$TEMPDIR/randist.err 2> $TEMPDIR/randist.out if [ $? -ne 0 ] ; then fail ; fi