X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fstats%2Fdescript-mean-bug.sh;h=529292cedc99d1a123a10e5285b4bd3e50e6d35c;hb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;hp=d1ebd648739747f08a2d9f915d8287d5fc5188df;hpb=2133a4941da5c903fe08c0961959e89b7d5f7321;p=pspp diff --git a/tests/stats/descript-mean-bug.sh b/tests/stats/descript-mean-bug.sh index d1ebd64873..529292cedc 100755 --- a/tests/stats/descript-mean-bug.sh +++ b/tests/stats/descript-mean-bug.sh @@ -5,16 +5,21 @@ TEMPDIR=/tmp/pspp-tst-$$ -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` -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH cleanup() { + cd / rm -rf $TEMPDIR } @@ -48,7 +53,7 @@ cd $TEMPDIR activity="create program" cat > $TEMPDIR/descript.stat <