run.tcl 674 B

12345678910111213141516171819202122232425262728
  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. end_tests
  18. }
  19. if {[catch main e]} {
  20. puts $::errorInfo
  21. if {$::pause_on_error} pause_on_error
  22. cleanup
  23. exit 1
  24. }