mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
4a3db25504
This makes tests a bit slower, but it is better to test things at a decent scale instead of using just a few nodes, and for a few tests we actually need so many nodes.
25 lines
547 B
Tcl
25 lines
547 B
Tcl
# Cluster test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com
|
|
# This softare is released under the BSD License. See the COPYING file for
|
|
# more information.
|
|
|
|
cd tests/cluster
|
|
source cluster.tcl
|
|
source ../instances.tcl
|
|
|
|
set ::instances_count 20 ; # How many instances we use at max.
|
|
|
|
proc main {} {
|
|
parse_options
|
|
spawn_instance redis $::redis_base_port $::instances_count {
|
|
"cluster-enabled yes"
|
|
"appendonly yes"
|
|
}
|
|
run_tests
|
|
cleanup
|
|
}
|
|
|
|
if {[catch main e]} {
|
|
puts $::errorInfo
|
|
cleanup
|
|
}
|