summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-08 05:00:05 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-08 10:17:31 -0500
commit641e3ed25c1b4e2bdc091f01549b9124fa37eba1 (patch)
tree00809875f312768f996a17b156b77eec6969ebef
parent940c4545669bfdc63a374f8733819d41686008c3 (diff)
downloadgpsd-641e3ed25c1b4e2bdc091f01549b9124fa37eba1.tar.gz
Regretfully, give up on the raw-regress test.
It wasn't part of the normal test dequence for good reason. There are just too many silly ways for it to go wrong, failing or even hanging. due to bad interactions between logfiles with trailing content that isn't a whole packet and various quirks of the test framework. Given that even raw mode is a fossil - let alone superraw mode - there's not enough value in this test to be worth the hassle.
-rw-r--r--SConstruct6
-rwxr-xr-xregress-driver13
2 files changed, 1 insertions, 18 deletions
diff --git a/SConstruct b/SConstruct
index f4bcc0d4..dfa2c220 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1447,12 +1447,6 @@ if env['socket_export']:
gps_regress = Utility("gps-regress", [gpsd, python_built_extensions],
'$SRCDIR/regress-driver %s test/daemon/*.log' %(regress_driver_options,))
- # Test that super-raw mode works. Compare each logfile against itself
- # dumped through the daemon running in R=2 mode. (This test is not
- # included in the normal regressions.)
- Utility("raw-regress", [gpsd, python_built_extensions],
- '$SRCDIR/regress-driver -r %s test/daemon/*.log' %(regress_driver_options,))
-
# Build the regression tests for the daemon.
# Note: You'll have to do this whenever the default leap second
# changes in timebase.h. The problem is in the SiRF tests;
diff --git a/regress-driver b/regress-driver
index 37b6e2c4..b6155812 100755
--- a/regress-driver
+++ b/regress-driver
@@ -37,14 +37,13 @@ opts=""
logfile=""
help="0"
baton=false
-while getopts cl:strbuvo:h opt
+while getopts cl:stbuvo:h opt
do
case $opt in
c) testing=clientlib ;; # Can be 'daemon'
l) logfile=$OPTARG ;; # Logfile to save diffs to
s) mode=regress ;; # Run regression tests
t) baton=true mode=regress ;; # Run regression tests w/baton
- r) mode=superraw ;; # Run superraw regressions (r=2 mode)
b) mode=build ;; # Rebuild regression check files
u) opts="$opts -u" ;; # Force UDP
v) mode=view ;; # View result of generating a check file
@@ -64,7 +63,6 @@ then
echo "-l <filename> - where to log diffs to"
echo "-s - run regreession tests"
echo "-t <ots> - Run regression tests w/baton"
- echo "-r - run superraw regressions (r=2 mode)"
echo "-b - Rebuild regression check files"
echo "-u - Force UDP"
echo "-v - view result of generating a check file"
@@ -154,15 +152,6 @@ case $mode in
status=0;
fi
;;
- superraw)
- echo "Testing super-raw mode..." >&2
- for f in $*; do
- ${PYTHON} ${GPSD_HOME}/gpsfake -s 38400 -1 -p $opts -r '?WATCH={"enable":true,"raw":2}' $opts ${f} \
- | ./devtools/striplog -n 4 >${TMP}/test1-$$.chk;
- ./devtools/striplog <${f} >${TMP}/test2-$$.chk;
- cmp ${TMP}/test[12]-$$.chk;
- done; rm ${TMP}/test[12]-$$.chk
- ;;
build)
echo "Rebuilding $testing regressions..." >&2
for f in $*; do