X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Ftabs.sh;h=ad530f45c83cb6cbfbb89881911e3b841ce8b8e7;hb=ae48c4384e74844a6ef9a13ecbecda106fe5b8e4;hp=05178199efbde1b0575191123e9c631bb996773a;hpb=92bfefccd465052e492f669ce561aa25b0110283;p=pspp-builds.git diff --git a/tests/command/tabs.sh b/tests/command/tabs.sh index 05178199..ad530f45 100755 --- a/tests/command/tabs.sh +++ b/tests/command/tabs.sh @@ -3,17 +3,28 @@ # This program tests that tab characters can be used in string input 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 } @@ -47,7 +58,7 @@ cd $TEMPDIR activity="create program 1" cat > $TEMPDIR/tabs.stat <