From e5a5c5150d20e63249940d846c074b2f9d3ed82f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 14 Aug 2009 21:40:49 +0000 Subject: Fix the regression-test driver and the tests. This just get things back to a consistent state using the old protocol. We'll need another rebuild to switch over to new protocol. --- regress-driver | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'regress-driver') diff --git a/regress-driver b/regress-driver index 134b0f4b..3763dc4d 100755 --- a/regress-driver +++ b/regress-driver @@ -37,9 +37,10 @@ case $mode in $do gpsfake -s 38400 -1 -p $opts ${f} | egrep -v "${GPSFILTER}" >$dir/test.chk; $do sed <$dir/test.chk >$dir/test-trunc.chk -e '$d' diff -ub ${f}.chk $dir/test.chk >$dir/diff - diff -ub ${f}.chk $dir/test-trunc.chk >>$dir/diff - if test -s $dir/diff; then :; else + diff -ub ${f}.chk $dir/test-trunc.chk >$dir/diff-trunc + if test \( -s $dir/diff \) -a \( -s $dir/diff-trunc \) ; then errors=`expr $errors + 1`; + cat $dir/diff fi; else echo "*** No check log $f.chk exists" @@ -47,7 +48,7 @@ case $mode in fi total=`expr $total + 1`; done; - $do rm -f $dir/test.chk $dir/test-trunc.chk $dir/diff; + $do rm -f $dir/test.chk $dir/test-trunc.chk $dir/diff $dir/diff-trunc; if test $errors -gt 0; then echo "Regression test FAILED: $errors errors in $total tests total ($notfound not found)."; exit 1; -- cgit v1.2.1