summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-14 01:28:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-14 01:28:38 +0000
commitd6c4036fd7558afec9c5940353082bc8cb6b4026 (patch)
tree1c32e8292bc071ef47de7c999a0e565e64ff712f /regress-driver
parentd08f1ff2116624ec1e27b0fc516f4dc8a141ea8b (diff)
downloadgpsd-d6c4036fd7558afec9c5940353082bc8cb6b4026.tar.gz
More simplification of the regression test driver.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver6
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`;