X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fno_case_size.sh;h=d9016eb9c05d858f9cbcea55fa7116ae88a43be2;hb=0498114186f126d786cc0f3cf6686a43b8513e62;hp=d8e1893590fa5a96bbb8e909dacb5b4188eee0fb;hpb=66f7c229748ba9f8bbcb6255caacb0689790a0da;p=pspp-builds.git diff --git a/tests/command/no_case_size.sh b/tests/command/no_case_size.sh index d8e18935..d9016eb9 100755 --- a/tests/command/no_case_size.sh +++ b/tests/command/no_case_size.sh @@ -7,12 +7,17 @@ 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() @@ -21,6 +26,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -52,6 +58,7 @@ mkdir -p $TEMPDIR cd $TEMPDIR +activity="create program" cat < $TESTFILE GET FILE='$top_srcdir/tests/no_case_size.sav'. DISPLAY DICTIONARY. @@ -61,11 +68,12 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE > /dev/null +$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" -diff -b -B -w pspp.list - <