X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/9fcfd6b6512dd975ba3eadf476b7d5670c9dbb79..d52e5888694cb65918f2b0d00691c198deb5643f:/tests/test_helper.tcl?ds=inline diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 95508cda..da6520a3 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -15,6 +15,7 @@ set ::traceleaks 0 set ::valgrind 0 set ::denytags {} set ::allowtags {} +set ::external 0; # If "1" this means, we are running against external instance proc execute_tests name { source "tests/$name.tcl" @@ -73,7 +74,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" @@ -106,6 +107,13 @@ for {set j 0} {$j < [llength $argv]} {incr j} { } } incr j + } elseif {$opt eq {--host}} { + set ::external 1 + set ::host $arg + incr j + } elseif {$opt eq {--port}} { + set ::port $arg + incr j } else { puts "Wrong argument: $opt" exit 1