1
0

infra.tcl 519 B

12345678910111213141516171819202122
  1. set testmodule [file normalize tests/modules/infotest.so]
  2. test {modules config rewrite} {
  3. start_server {tags {"modules"}} {
  4. r module load $testmodule
  5. assert_equal [lindex [lindex [r module list] 0] 1] infotest
  6. r config rewrite
  7. restart_server 0 true false
  8. assert_equal [lindex [lindex [r module list] 0] 1] infotest
  9. r module unload infotest
  10. r config rewrite
  11. restart_server 0 true false
  12. assert_equal [llength [r module list]] 0
  13. }
  14. }