gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 4/4] Switches parallel regression tests from UDP to TC


From: Fred Wright
Subject: [gpsd-dev] [PATCH 4/4] Switches parallel regression tests from UDP to TCP.
Date: Tue, 15 Mar 2016 16:52:12 -0700

Although UDP is a bit faster than TCP (albeit negligibly so on most
platforms), the method for assigning "fake data" ports is less robust
for UDP than for TCP.  This leads to occasional "can't connect" errors
with parallel regression tests.  The fix is just to use TCP instead.

TESTED:
Successfully ran parallel "scons build-all check" on OSX, Linux,
FreeBSD, OpenBSD, and NetBSD, both with and without coveraging.
---
 SConstruct | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/SConstruct b/SConstruct
index 1eb80a9..56a9ad9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1587,7 +1587,7 @@ else:
     gps_tests = []
     for gps_name, gps_log in zip(gps_names, gps_logs):
         gps_tests.append(Utility('gps-regress-' + gps_name, gps_herald,
-                                 '$SRCDIR/regress-driver -qu $REGRESSOPTS '
+                                 '$SRCDIR/regress-driver -q -o -t $REGRESSOPTS 
'
                                  + gps_log))
     if GetOption('num_jobs') <= 1:
         gps_regress = Utility('gps-regress', gps_herald,
@@ -1613,7 +1613,8 @@ else:
     gps_rebuilds = []
     for gps_name, gps_log in zip(gps_names, gps_logs):
         gps_rebuilds.append(Utility('gps-makeregress-' + gps_name, gps_herald,
-                                    '$SRCDIR/regress-driver -bqu $REGRESSOPTS '
+                                    '$SRCDIR/regress-driver -bq -o -t '
+                                    '$REGRESSOPTS '
                                     + gps_log))
     if GetOption('num_jobs') <= 1:
         Utility('gps-makeregress', gps_herald,
-- 
2.7.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]