diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-24 15:29:50 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-24 15:29:50 -0400 |
commit | c0d020644bf925fb1010c86756e5051e50f18e51 (patch) | |
tree | aeb20db9c4adb7a4f52b7e6206b73333a2d61d78 /regress-driver | |
parent | 0ca4dac4db42ddf2f95bb60007c8f3f5b4f17619 (diff) | |
download | gpsd-c0d020644bf925fb1010c86756e5051e50f18e51.tar.gz |
Add slow=yes option for regression tests in an attempt to avoid flakeouts.
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/regress-driver b/regress-driver index 453b932a..8b14c025 100755 --- a/regress-driver +++ b/regress-driver @@ -45,12 +45,13 @@ opts="" logfile="" help="0" baton=false -while getopts cl:stbuvo:h opt +while getopts cl:sStbuvo: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 + S) mode=slowregress ;; # Run regression tests with big delays t) baton=true mode=regress ;; # Run regression tests w/baton b) mode=build ;; # Rebuild regression check files u) opts="$opts -u" ;; # Force UDP @@ -69,7 +70,8 @@ then echo "-h - this help" echo "-c - can be 'daemon'" echo "-l <filename> - where to log diffs to" - echo "-s - run regreession tests" + echo "-s - run regression tests" + echo "-S - run regression tests with realistic timing delays" echo "-t <ots> - Run regression tests w/baton" echo "-b - Rebuild regression check files" echo "-u - Force UDP" @@ -107,8 +109,13 @@ then opts="$opts -b" fi +if [ $mode = slowregress ] +then + opts="$opts -S" +fi + case $mode in - regress) + regress|slowregress) echo "Testing the $testing..." >&2 errors=0; total=0; notfound=0;error_list=""; for f in $*; do |