redict/tests/sentinel/run.tcl

24 lines
561 B
Tcl
Raw Normal View History

# Sentinel test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com
2014-07-31 14:25:48 -04:00
# This software is released under the BSD License. See the COPYING file for
# more information.
cd tests/sentinel
source ../instances.tcl
set ::instances_count 5 ; # How many instances we use at max.
proc main {} {
parse_options
spawn_instance sentinel $::sentinel_base_port $::instances_count
spawn_instance redis $::redis_base_port $::instances_count
run_tests
cleanup
end_tests
}
if {[catch main e]} {
puts $::errorInfo
cleanup
2014-06-18 08:10:04 -04:00
exit 1
}