X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Faggregate.sh;h=63abc6f3b003ac093ee59434736522d9d64d27c8;hb=1fe8ef2486ef1e853d68bbab967ccb812900128f;hp=36a9feffcd842f15ab2dc068cd11e634e2f96e92;hpb=009350385d97d9fba2b33ea68cfe8b1aeebf1529;p=pspp-builds.git diff --git a/tests/command/aggregate.sh b/tests/command/aggregate.sh index 36a9feff..63abc6f3 100755 --- a/tests/command/aggregate.sh +++ b/tests/command/aggregate.sh @@ -11,6 +11,7 @@ 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 @@ -18,6 +19,10 @@ export STAT_CONFIG_PATH cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -141,6 +146,8 @@ cat > agg-skel.pspp < 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