X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fimport-export.sh;h=8b88937f905972166a17c4cb2899c3036aea15ed;hb=f774ff348c7abdf13424219e9c41d5e11943202b;hp=3cf262a442368415f81bd998fb7e49fe39c274a5;hpb=071bf8498aaa74c71d56617b683c07466f78febb;p=pspp-builds.git diff --git a/tests/command/import-export.sh b/tests/command/import-export.sh index 3cf262a4..8b88937f 100755 --- a/tests/command/import-export.sh +++ b/tests/command/import-export.sh @@ -3,17 +3,24 @@ # This program tests the IMPORT and EXPORT commands 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 } @@ -46,8 +53,8 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program" -cat > $TEMPDIR/prog.stat < $TESTFILE <