summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-05-04 19:33:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-05-04 19:33:45 -0400
commit48548c8b3feee14da62d5a5e9932425c72f4afe9 (patch)
treea98ddbf55c58115aa4fd4ab31d7cb24a63fe1c9e /regress-driver
parent8e2d223d06d0787bdd9930256d99f2d2d67a9885 (diff)
downloadgpsd-48548c8b3feee14da62d5a5e9932425c72f4afe9.tar.gz
Implement a -u switch to force the test framework to use UDP, not ptys.
The good news is that rgression tests all pass with this case and -u off. The bad news is that they fail with -u on. It looks like the switch forces some other bug, previously masked, into the open.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress-driver b/regress-driver
index 691630aa..97b96afb 100755
--- a/regress-driver
+++ b/regress-driver
@@ -35,7 +35,7 @@ export PATH
mode=regress
testing=daemon
opts=""
-while getopts cstrbvo opt
+while getopts cstrbuvo opt
do
case $opt in
c) testing=clientlib ;; # Can be 'daemon'
@@ -43,6 +43,7 @@ do
t) opts="-b $opts" 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
o) opts="$opts $OPTARG" ;; # Pass options to gpsfake
esac