X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fget.sh;h=024da3f1226a5cee8e88c3c250370e8df80927c5;hb=60401d43dd6915c6eaa0fc6cf01fd361dcc323d1;hp=bc8192a98dddd39efa68d437e6b7cff0efc47d9b;hpb=05e356b2a3087e819ef3b5388e29c822f41502e1;p=pspp-builds.git diff --git a/tests/bugs/get.sh b/tests/bugs/get.sh index bc8192a9..024da3f1 100755 --- a/tests/bugs/get.sh +++ b/tests/bugs/get.sh @@ -7,16 +7,22 @@ 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` -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH cleanup() { + cd / rm -rf $TEMPDIR } @@ -50,7 +56,7 @@ cd $TEMPDIR activity="create program" cat > $TESTFILE <