run.tcl 759 B

123456789101112131415161718192021222324252627
  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. if {$::leaked_fds_file != ""} {
  11. set ::env(LEAKED_FDS_FILE) $::leaked_fds_file
  12. }
  13. spawn_instance sentinel $::sentinel_base_port $::instances_count [list "sentinel deny-scripts-reconfig no"] "../tests/includes/sentinel.conf"
  14. spawn_instance redis $::redis_base_port $::instances_count
  15. run_tests
  16. cleanup
  17. end_tests
  18. }
  19. if {[catch main e]} {
  20. puts $::errorInfo
  21. cleanup
  22. exit 1
  23. }