X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fcount.sh;h=7fa56cc4ba13a581592ce43baa75351333078623;hb=7693a37f77880e38d26af908cdb21710d631ad5a;hp=a792c08ba3f56a91686cec58aead146dd95ee17c;hpb=a19e7749cdb8713316fde220f2fc9a5ad5dc79ed;p=pspp diff --git a/tests/command/count.sh b/tests/command/count.sh index a792c08ba3..7fa56cc4ba 100755 --- a/tests/command/count.sh +++ b/tests/command/count.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 } @@ -46,11 +54,12 @@ mkdir -p $TEMPDIR cd $TEMPDIR +activity="Create File 1" cat > $TESTFILE < $TESTFILE <