2
0

run.tcl 561 B

1234567891011121314151617181920212223
  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. proc main {} {
  8. parse_options
  9. spawn_instance sentinel $::sentinel_base_port $::instances_count
  10. spawn_instance redis $::redis_base_port $::instances_count
  11. run_tests
  12. cleanup
  13. end_tests
  14. }
  15. if {[catch main e]} {
  16. puts $::errorInfo
  17. cleanup
  18. exit 1
  19. }