From 7cc17ed8ff71590d5aa5765d306c0814002b6476 Mon Sep 17 00:00:00 2001 From: Premysl Hruby Date: Tue, 3 Apr 2012 13:32:49 +0200 Subject: [PATCH] new option for choosing number of test clients to run --- tests/test_helper.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 34d96606..2ec3aad1 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -345,6 +345,7 @@ proc print_help_screen {} { "--quiet Don't show individual tests." "--single Just execute the specified unit (see next option)." "--list-tests List all the available test units." + "--clients Number of test clients (16)." "--force-failure Force the execution of a test that always fails." "--help Print this help screen." } "\n"] @@ -390,6 +391,9 @@ for {set j 0} {$j < [llength $argv]} {incr j} { set ::client 1 set ::test_server_port $arg incr j + } elseif {$opt eq {--clients}} { + set ::numclients $arg + incr j } elseif {$opt eq {--help}} { print_help_screen exit 0 -- 2.45.2