X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Ft-test-paired-missing-anal.sh;h=d14f812a9ca6aaf1b437386109bcb2b3fcee0f90;hb=a9c5233f04317a5ace5e6dcbe3cc61a9f07d57c0;hp=a4ac3b9e14efca5ea681b60e4d92e32d45c46331;hpb=48cf1d7de82d12cdf3c0433d49d3c66f820f1609;p=pspp diff --git a/tests/command/t-test-paired-missing-anal.sh b/tests/command/t-test-paired-missing-anal.sh index a4ac3b9e14..d14f812a9c 100755 --- a/tests/command/t-test-paired-missing-anal.sh +++ b/tests/command/t-test-paired-missing-anal.sh @@ -4,17 +4,28 @@ # when there is per ANALYSIS missing data involved. 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$EXEEXT # 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 } @@ -47,7 +58,7 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program 1" -cat > $TEMPDIR/out.stat < $TESTFILE < $TEMPDIR/out.stat < $TESTFILE <