diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-14 21:40:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-14 21:40:49 +0000 |
commit | e5a5c5150d20e63249940d846c074b2f9d3ed82f (patch) | |
tree | 0899bf22883bddde34a2c508137d62313cbb8bd7 /regress-driver | |
parent | d7a3bb12a37868b2b38ce25ffd15fb9b60c874cb (diff) | |
download | gpsd-e5a5c5150d20e63249940d846c074b2f9d3ed82f.tar.gz |
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.
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 7 |
1 files changed, 4 insertions, 3 deletions
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; |