aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-04-30 20:15:33 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-04-30 20:15:33 +0000
commit5187faeeb97321343cd0a1f3ad9aa10992513e99 (patch)
treebb96009d55f96c9b05c032982c14abb31e775270 /tests/runtests.pl
parent1228ec9fbb7db2d6f1615e8736be66d5c6f698d2 (diff)
Improved the test harness to allow running test servers on other than
the default port numbers, allowing more than one test suite to run simultaneously on the same host.
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;