X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fget.sh;h=2cc6cfc5a3e26ec7f0b8d24a629fb75728e4f2d5;hb=fd0c595927a23ea0373551a1eed4570388ea0fc5;hp=bc8192a98dddd39efa68d437e6b7cff0efc47d9b;hpb=05e356b2a3087e819ef3b5388e29c822f41502e1;p=pspp-builds.git diff --git a/tests/bugs/get.sh b/tests/bugs/get.sh index bc8192a9..2cc6cfc5 100755 --- a/tests/bugs/get.sh +++ b/tests/bugs/get.sh @@ -7,16 +7,26 @@ 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() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi + cd / rm -rf $TEMPDIR } @@ -50,7 +60,7 @@ cd $TEMPDIR activity="create program" cat > $TESTFILE <