X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6e0e5bedd9c3a4bf0f53f43c427c88e2866bda0a..ab193fe452de9aa7cb96a937ce15df2c675a47c1:/tests/test_helper.tcl diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index da9071e8..5aa24248 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -73,7 +73,7 @@ proc main {} { execute_tests "integration/aof" # run tests with VM enabled - set ::global_overrides [list [list vm-enabled yes]] + set ::global_overrides {vm-enabled yes} execute_tests "unit/protocol" execute_tests "unit/basic" execute_tests "unit/type/list" @@ -93,6 +93,25 @@ proc main {} { cleanup } +# parse arguments +for {set j 0} {$j < [llength $argv]} {incr j} { + set opt [lindex $argv $j] + set arg [lindex $argv [expr $j+1]] + if {$opt eq {--tags}} { + foreach tag $arg { + if {[string index $tag 0] eq "-"} { + lappend ::denytags [string range $tag 1 end] + } else { + lappend ::allowtags $tag + } + } + incr j + } else { + puts "Wrong argument: $opt" + exit 1 + } +} + if {[catch { main } err]} { if {[string length $err] > 0} { # only display error when not generated by the test suite