run.tcl 660 B

123456789101112131415161718192021222324252627
  1. # Cluster test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com
  2. # This software is released under the BSD License. See the COPYING file for
  3. # more information.
  4. cd tests/cluster
  5. source cluster.tcl
  6. source ../instances.tcl
  7. source ../../support/cluster.tcl ; # Redis Cluster client.
  8. set ::instances_count 20 ; # How many instances we use at max.
  9. proc main {} {
  10. parse_options
  11. spawn_instance redis $::redis_base_port $::instances_count {
  12. "cluster-enabled yes"
  13. "appendonly yes"
  14. }
  15. run_tests
  16. cleanup
  17. }
  18. if {[catch main e]} {
  19. puts $::errorInfo
  20. if {$::pause_on_error} pause_on_error
  21. cleanup
  22. exit 1
  23. }