Redis Cluster test framework skeleton.

This commit is contained in:
antirez
2014-04-24 18:01:41 +02:00
parent 3acae3dee3
commit a8464828b6
5 changed files with 72 additions and 0 deletions

22
tests/cluster/run.tcl Normal file
View File

@@ -0,0 +1,22 @@
# 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
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
}