| 1 |
# Loads the daemon_memcached plugin and waits for a while |
| 2 |
# to make sure it will not become responsive to 'stats' |
| 3 |
# |
| 4 |
# Example of usage: |
| 5 |
# # host and port on which the memcached should operate |
| 6 |
# # ususally host is 127.0.0.1 and |
| 7 |
# # port is in -master.opt file as --loose-daemon_memcached_option |
| 8 |
# --let $memcached_address=127.0.0.1:11227 |
| 9 |
# --source ../include/load_daemon_memcached_expecting_error.inc |
| 10 |
|
| 11 |
INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; |
| 12 |
# We use a rather small number here, not to slow down tests, yet |
| 13 |
# 3 seconds should be enough at least on some runs to expose a |
| 14 |
# problem when the server starts even though it should not. |
| 15 |
# In my experience 90% of the time the plugin starts in less than |
| 16 |
# 2 seconds, as evidenced by old vesions of code using SLEEP(2). |
| 17 |
--let $memcached_check_attempts=3 |
| 18 |
--let $memcached_expect=error |
| 19 |
--source ../include/check_daemon_memcached.inc |