2019-10-24 09:38:52 +03:00
|
|
|
set testmodule [file normalize tests/modules/misc.so]
|
|
|
|
|
|
|
|
|
|
|
|
start_server {tags {"modules"}} {
|
|
|
|
r module load $testmodule
|
|
|
|
|
|
|
|
test {test RM_Call} {
|
|
|
|
set info [r test.call_info commandstats]
|
|
|
|
# cmdstat is not in a default section, so we also test an argument was passed
|
|
|
|
assert { [string match "*cmdstat_module*" $info] }
|
|
|
|
}
|
|
|
|
|
|
|
|
test {test RM_Call args array} {
|
|
|
|
set info [r test.call_generic info commandstats]
|
|
|
|
# cmdstat is not in a default section, so we also test an argument was passed
|
|
|
|
assert { [string match "*cmdstat_module*" $info] }
|
|
|
|
}
|
|
|
|
|
2019-11-04 18:04:35 +01:00
|
|
|
test {test long double conversions} {
|
|
|
|
set ld [r test.ld_conversion]
|
|
|
|
assert {[string match $ld "0.00000000000000001"]}
|
|
|
|
}
|
|
|
|
|
2019-10-24 09:38:52 +03:00
|
|
|
}
|