提交 524d515f 编写于 作者: A antirez

implemented --single, --list-tests. --accurante and --help are now recognized...

implemented --single, --list-tests. --accurante and --help are now recognized but not actually implemented.
上级 6209797d
...@@ -45,6 +45,7 @@ set ::allowtags {} ...@@ -45,6 +45,7 @@ set ::allowtags {}
set ::external 0; # If "1" this means, we are running against external instance set ::external 0; # If "1" this means, we are running against external instance
set ::file ""; # If set, runs only the tests in this comma separated list set ::file ""; # If set, runs only the tests in this comma separated list
set ::curfile ""; # Hold the filename of the current suite set ::curfile ""; # Hold the filename of the current suite
set ::accurate 0; # If true runs fuzz tests with more iterations
# Set to 1 when we are running in client mode. The Redis test uses a # Set to 1 when we are running in client mode. The Redis test uses a
# server-client model to run tests simultaneously. The server instance # server-client model to run tests simultaneously. The server instance
...@@ -325,10 +326,23 @@ for {set j 0} {$j < [llength $argv]} {incr j} { ...@@ -325,10 +326,23 @@ for {set j 0} {$j < [llength $argv]} {incr j} {
incr j incr j
} elseif {$opt eq {--verbose}} { } elseif {$opt eq {--verbose}} {
set ::verbose 1 set ::verbose 1
} elseif {$opt eq {--accurate}} {
set ::accurate 1
} elseif {$opt eq {--single}} {
set ::all_tests $arg
incr j
} elseif {$opt eq {--list-tests}} {
foreach t $::all_tests {
puts $t
}
exit 0
} elseif {$opt eq {--client}} { } elseif {$opt eq {--client}} {
set ::client 1 set ::client 1
set ::test_server_port $arg set ::test_server_port $arg
incr j incr j
} elseif {$opt eq {--help}} {
puts "TODO print an help screen"
exit 0
} else { } else {
puts "Wrong argument: $opt" puts "Wrong argument: $opt"
exit 1 exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册