Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7cb42c9c
Commit
7cb42c9c
authored
Jun 01, 2021
by
Oran Agra
Browse files
add test for modules load/unload and config rewrite
parent
2ff53060
Changes
2
Hide whitespace changes
Inline
Side-by-side
runtest-moduleapi
View file @
7cb42c9c
...
...
@@ -19,6 +19,7 @@ $TCLSH tests/test_helper.tcl \
--single
unit/moduleapi/fork
\
--single
unit/moduleapi/testrdb
\
--single
unit/moduleapi/infotest
\
--single
unit/moduleapi/infra
\
--single
unit/moduleapi/propagate
\
--single
unit/moduleapi/hooks
\
--single
unit/moduleapi/misc
\
...
...
tests/unit/moduleapi/infra.tcl
0 → 100644
View file @
7cb42c9c
set testmodule
[
file normalize tests/modules/infotest.so
]
test
{
modules config rewrite
}
{
start_server
{
tags
{
"modules"
}}
{
r module load $testmodule
assert_equal
[
lindex
[
lindex
[
r module list
]
0
]
1
]
infotest
r config rewrite
restart_server 0 true false
assert_equal
[
lindex
[
lindex
[
r module list
]
0
]
1
]
infotest
r module unload infotest
r config rewrite
restart_server 0 true false
assert_equal
[
llength
[
r module list
]]
0
}
}
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