diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-14 01:28:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-14 01:28:38 +0000 |
commit | d6c4036fd7558afec9c5940353082bc8cb6b4026 (patch) | |
tree | 1c32e8292bc071ef47de7c999a0e565e64ff712f /regress-driver | |
parent | d08f1ff2116624ec1e27b0fc516f4dc8a141ea8b (diff) | |
download | gpsd-d6c4036fd7558afec9c5940353082bc8cb6b4026.tar.gz |
More simplification of the regression test driver.
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress-driver b/regress-driver index 05c97ed9..ab042e15 100755 --- a/regress-driver +++ b/regress-driver @@ -41,20 +41,20 @@ GPSFILTER="sed -e /^GPSD,X/d -e /^gpsd:/d -e /^gpsfake/d -e /GPS-DATA/d -e /WATC case $mode in regress) echo "Testing the daemon..." >&2 - trap 'rm -f $dir/test.chk $dir/test-whole.chk $dir/test-trunk.chk $dir/log-copy.chk $dir/diff $dir/diff-trunc; exit $errors' 0 1 2 15 errors=0; total=0; notfound=0; for f in $*; do dir=`dirname $f` + trap 'rm -f $dir/test.chk $dir/log-copy.chk $dir/diff; exit $errors' 0 1 2 15 if [ -r $f.chk ] then gpsfake -s 38400 -1 -p $opts ${f} | ${GPSFILTER} ${ALTFILTER} >$dir/test.chk; sed -n <${f}.chk >$dir/log-copy.chk ${ALTFILTER} -e 'p'; - sed -n <$dir/test.chk >$dir/test-whole.chk ${ALTFILTER} -e 'p'; - diff -ub $dir/log-copy.chk $dir/test-whole.chk >$dir/diff; + diff -ub $dir/log-copy.chk $dir/test.chk >$dir/diff; if test -s $dir/diff; then errors=`expr $errors + 1`; cat $dir/diff fi; + rm -f $dir/test.chk $dir/log-copy.chk $dir/diff else echo "*** No check log $f.chk exists" notfound=`expr $notfound + 1`; |