run.tcl 617 B

1234567891011121314151617181920212223242526
  1. # Cluster test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com
  2. # This softare 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. cleanup
  21. exit 1
  22. }