aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 851de6f5a..76adec161 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2253,6 +2253,12 @@ do {
# verbose output
$verbose=1;
}
+ elsif($ARGV[0] =~ /^-b(.*)/) {
+ my $portno=$1;
+ if($portno =~ s/(\d+)$//) {
+ $base = int $1;
+ }
+ }
elsif ($ARGV[0] eq "-c") {
# use this path to curl instead of default
$DBGCURL=$CURL=$ARGV[1];
@@ -2309,20 +2315,22 @@ do {
elsif($ARGV[0] eq "-h") {
# show help text
print <<EOHELP
-Usage: runtests.pl [options]
+Usage: runtests.pl [options] [test number(s)]
-a continue even if a test fails
+ -bN use base port number N for test servers (default $base)
+ -c path use this curl executable
-d display server debug info
-g run the test case with gdb
-h this help text
-k keep stdout and stderr files present after tests
-l list all test case names/descriptions
- -n No valgrind
- -p Print log file contents when a test fails
+ -n no valgrind
+ -p print log file contents when a test fails
-s short output
- -t torture
+ -t[N] torture (simulate memory alloc failures); N means fail Nth alloc
-v verbose output
[num] like "5 6 9" or " 5 to 22 " to run those tests only
- ![num] like "!5 !6 !9" to disable those tests
+ [!num] like "!5 !6 !9" to disable those tests
EOHELP
;
exit;