2
0

run.tcl 586 B

123456789101112131415161718192021222324
  1. # Sentinel 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/sentinel
  5. source ../instances.tcl
  6. set ::instances_count 5 ; # How many instances we use at max.
  7. set ::tlsdir "../../tls"
  8. proc main {} {
  9. parse_options
  10. spawn_instance sentinel $::sentinel_base_port $::instances_count
  11. spawn_instance redis $::redis_base_port $::instances_count
  12. run_tests
  13. cleanup
  14. end_tests
  15. }
  16. if {[catch main e]} {
  17. puts $::errorInfo
  18. cleanup
  19. exit 1
  20. }