diff options
Diffstat (limited to 'examples/redis-unstable/tests/cluster/run.tcl')
| -rw-r--r-- | examples/redis-unstable/tests/cluster/run.tcl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/redis-unstable/tests/cluster/run.tcl b/examples/redis-unstable/tests/cluster/run.tcl new file mode 100644 index 0000000..1deb9e2 --- /dev/null +++ b/examples/redis-unstable/tests/cluster/run.tcl | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | # Cluster test suite. | ||
| 2 | # | ||
| 3 | # Copyright (C) 2014-Present, Redis Ltd. | ||
| 4 | # All Rights reserved. | ||
| 5 | # | ||
| 6 | # Licensed under your choice of (a) the Redis Source Available License 2.0 | ||
| 7 | # (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the | ||
| 8 | # GNU Affero General Public License v3 (AGPLv3). | ||
| 9 | |||
| 10 | cd tests/cluster | ||
| 11 | source cluster.tcl | ||
| 12 | source ../instances.tcl | ||
| 13 | source ../../support/cluster.tcl ; # Redis Cluster client. | ||
| 14 | |||
| 15 | set ::instances_count 20 ; # How many instances we use at max. | ||
| 16 | set ::tlsdir "../../tls" | ||
| 17 | |||
| 18 | proc main {} { | ||
| 19 | parse_options | ||
| 20 | spawn_instance redis $::redis_base_port $::instances_count { | ||
| 21 | "cluster-enabled yes" | ||
| 22 | "appendonly yes" | ||
| 23 | "enable-protected-configs yes" | ||
| 24 | "enable-debug-command yes" | ||
| 25 | "save ''" | ||
| 26 | } | ||
| 27 | run_tests | ||
| 28 | cleanup | ||
| 29 | end_tests | ||
| 30 | } | ||
| 31 | |||
| 32 | if {[catch main e]} { | ||
| 33 | puts $::errorInfo | ||
| 34 | if {$::pause_on_error} pause_on_error | ||
| 35 | cleanup | ||
| 36 | exit 1 | ||
| 37 | } | ||
