run.tcl 699 B

1234567891011121314151617181920212223242526272829
  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. set ::tlsdir "../../tls"
  10. proc main {} {
  11. parse_options
  12. spawn_instance redis $::redis_base_port $::instances_count {
  13. "cluster-enabled yes"
  14. "appendonly yes"
  15. }
  16. run_tests
  17. cleanup
  18. end_tests
  19. }
  20. if {[catch main e]} {
  21. puts $::errorInfo
  22. if {$::pause_on_error} pause_on_error
  23. cleanup
  24. exit 1
  25. }