X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Ftrimmed-mean.sh;h=bb8cc227355316bb866077f61ce3a4f99b2f1483;hb=c9995451f0a91a645e1fdfeb9229090001af9c5b;hp=8b84a31c47c24d9bb38f916d54518910c6cdc819;hpb=4239c455e7b1061b7c960b793f9080e113123845;p=pspp-builds.git diff --git a/tests/command/trimmed-mean.sh b/tests/command/trimmed-mean.sh index 8b84a31c..bb8cc227 100755 --- a/tests/command/trimmed-mean.sh +++ b/tests/command/trimmed-mean.sh @@ -4,17 +4,24 @@ # where the data is weighted towards the centre 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 } @@ -48,8 +55,8 @@ cd $TEMPDIR activity="create program" -cat > $TEMPDIR/out.stat < $TESTFILE <