Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a89c8bb8
Commit
a89c8bb8
authored
Feb 28, 2014
by
antirez
Browse files
Sentinel test: Makefile target added.
parent
8b8c1cd4
Changes
2
Show whitespace changes
Inline
Side-by-side
runtest-sentinel
0 → 100755
View file @
a89c8bb8
#!/bin/sh
TCL_VERSIONS
=
"8.5 8.6"
TCLSH
=
""
for
VERSION
in
$TCL_VERSIONS
;
do
TCL
=
`
which tclsh
$VERSION
2>/dev/null
`
&&
TCLSH
=
$TCL
done
if
[
-z
$TCLSH
]
then
echo
"You need tcl 8.5 or newer in order to run the Redis Sentinel test"
exit
1
fi
$TCLSH
tests/sentinel.tcl
$*
src/Makefile
View file @
a89c8bb8
...
@@ -204,6 +204,9 @@ distclean: clean
...
@@ -204,6 +204,9 @@ distclean: clean
test
:
$(REDIS_SERVER_NAME) $(REDIS_CHECK_AOF_NAME)
test
:
$(REDIS_SERVER_NAME) $(REDIS_CHECK_AOF_NAME)
@
(
cd
..
;
./runtest
)
@
(
cd
..
;
./runtest
)
test-sentinel
:
$(REDIS_SENTINEL_NAME)
@
(
cd
..
;
./runtest-sentinel
)
check
:
test
check
:
test
lcov
:
lcov
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment