X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fexamine-extremes.sh;h=982a03bc32bd34ec05b1ba056eb7e65e406f784f;hb=25b137fbf6afe8bd40b26a93543e5b8a5af87e61;hp=735a7f0df3b955c4d8a0bae39091432687851ff7;hpb=692311e8b42e47c4886896c6e2d2fbf846151652;p=pspp diff --git a/tests/command/examine-extremes.sh b/tests/command/examine-extremes.sh index 735a7f0df3..982a03bc32 100755 --- a/tests/command/examine-extremes.sh +++ b/tests/command/examine-extremes.sh @@ -5,16 +5,24 @@ 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 +LANG=C +export LANG cleanup() { + cd / rm -rf $TEMPDIR } @@ -48,7 +56,7 @@ cd $TEMPDIR activity="create program" cat > $TESTFILE <