mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
23 lines
519 B
Tcl
23 lines
519 B
Tcl
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
|
|
}
|
|
}
|