diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2021-01-17 15:48:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 15:48:48 +0200 |
commit | 522d93607a46e28b035c675fe066778c453e84ba (patch) | |
tree | 2034b84457e2b1eb9e2c56532c9f41678b595106 /tests/instances.tcl | |
parent | f5cf1e46a4812f0616f0ce763417b8c84f035493 (diff) | |
download | redis-522d93607a46e28b035c675fe066778c453e84ba.tar.gz |
Add io-thread daily CI tests. (#8232)
This adds basic coverage to IO threads by running the cluster and few selected Redis test suite tests with the IO threads enabled.
Also provides some necessary additional improvements to the test suite:
* Add --config to sentinel/cluster tests for arbitrary configuration.
* Fix --tags whitelisting which was broken.
* Add a `network` tag to some tests that are more network intensive. This is work in progress and more tests should be properly tagged in the future.
Diffstat (limited to 'tests/instances.tcl')
-rw-r--r-- | tests/instances.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/instances.tcl b/tests/instances.tcl index a9cc01008..18eb1a402 100644 --- a/tests/instances.tcl +++ b/tests/instances.tcl @@ -24,6 +24,7 @@ set ::simulate_error 0 set ::failed 0 set ::sentinel_instances {} set ::redis_instances {} +set ::global_config {} set ::sentinel_base_port 20000 set ::redis_base_port 30000 set ::redis_port_count 1024 @@ -92,6 +93,9 @@ proc spawn_instance {type base_port count {conf {}}} { foreach directive $conf { puts $cfg $directive } + dict for {name val} $::global_config { + puts $cfg "$name $val" + } close $cfg # Finally exec it and remember the pid for later cleanup. @@ -239,6 +243,10 @@ proc parse_options {} { -certfile "$::tlsdir/client.crt" \ -keyfile "$::tlsdir/client.key" set ::tls 1 + } elseif {$opt eq {--config}} { + set val2 [lindex $::argv [expr $j+2]] + dict set ::global_config $val $val2 + incr j 2 } elseif {$opt eq "--help"} { puts "--single <pattern> Only runs tests specified by pattern." puts "--dont-clean Keep log files on exit." @@ -246,6 +254,7 @@ proc parse_options {} { puts "--fail Simulate a test failure." puts "--valgrind Run with valgrind." puts "--tls Run tests in TLS mode." + puts "--config <k> <v> Extra config argument(s)." puts "--help Shows this help." exit 0 } else { |