This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
forked from redis/redis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sentinel test files / directories layout improved.
The test now runs in a self-contained directory. The general abstractions to run the tests in an environment where mutliple instances are executed at the same time was extrapolated into instances.tcl, that will be reused to test Redis Cluster.
- Loading branch information
Showing
10 changed files
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Sentinel test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com | ||
# This softare is released under the BSD License. See the COPYING file for | ||
# more information. | ||
|
||
cd tests/sentinel | ||
source ../instances.tcl | ||
|
||
proc main {} { | ||
parse_options | ||
spawn_instance sentinel $::sentinel_base_port $::instances_count | ||
spawn_instance redis $::redis_base_port $::instances_count | ||
run_tests | ||
cleanup | ||
} | ||
|
||
if {[catch main e]} { | ||
puts $::errorInfo | ||
cleanup | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/sentinel-tests/00-base.tcl → tests/sentinel/tests/00-base.tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/sentinel-tests/01-conf-update.tcl → tests/sentinel/tests/01-conf-update.tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.