run.tcl 546 B

12345678910111213141516171819202122
  1. # Sentinel 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/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. }
  14. if {[catch main e]} {
  15. puts $::errorInfo
  16. cleanup
  17. exit 1
  18. }