summaryrefslogtreecommitdiff
path: root/tests/cluster/run.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-04-24 18:01:41 +0200
committerantirez <antirez@gmail.com>2014-04-24 18:01:41 +0200
commitc3f85c010738a9a84bf60d2b4c7654c5c6b76e92 (patch)
tree034fe67259bd22068146412290f3fa52402ed49d /tests/cluster/run.tcl
parent7d9b45b4a17edbfbce776487051539ff9a7f886d (diff)
downloadredis-c3f85c010738a9a84bf60d2b4c7654c5c6b76e92.tar.gz
Redis Cluster test framework skeleton.
Diffstat (limited to 'tests/cluster/run.tcl')
-rw-r--r--tests/cluster/run.tcl22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/cluster/run.tcl b/tests/cluster/run.tcl
new file mode 100644
index 000000000..acb6d49cd
--- /dev/null
+++ b/tests/cluster/run.tcl
@@ -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
+}