X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcommand%2Faggregate.sh;h=8fca96fab01db1991b6f770b3e84b4ce39d6367b;hb=274c90615ffd6975784232b709cff0b99da8b38d;hp=a7a8294fcf1b1f40f3f832599fcbfbe41a7bcdf8;hpb=8c12d5a827a8499bcf0ab15dd3f265e245230e4b;p=pspp-builds.git diff --git a/tests/command/aggregate.sh b/tests/command/aggregate.sh index a7a8294f..8fca96fa 100755 --- a/tests/command/aggregate.sh +++ b/tests/command/aggregate.sh @@ -6,10 +6,12 @@ TEMPDIR=/tmp/pspp-tst-$$ TESTFILE=$TEMPDIR/aggregate.pspp -here=`pwd`; - -# ensure that top_srcdir is absolute -cd $top_srcdir; top_srcdir=`pwd` +# ensure that top_srcdir and top_builddir are absolute +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +top_srcdir=`cd $top_srcdir; pwd` +top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp STAT_CONFIG_PATH=$top_srcdir/config @@ -148,6 +150,10 @@ EOF activity="expected output (itemwise missing) create" cat > agg-itemwise.out < agg-columnwise.out </dev/null 2>&1 + $SUPERVISOR $PSPP --testing-mode -e /dev/null $name.pspp if [ $? -ne 0 ] ; then no_result ; fi activity="check $name output" - perl -pi -e 's/^\s*$//g' pspp.list agg-$missing.out + perl -pi -e 's/^\s*$//g;s/^.*:\d+: //;' pspp.list agg-$missing.out diff -b -w pspp.list agg-$missing.out if [ $? -ne 0 ] ; then fail ; fi done