| 1 |
#--source include/have_daemon_example_plugin.inc |
| 2 |
|
| 3 |
## Preamble |
| 4 |
call mtr.add_suppression("This is a warning from test plugin"); |
| 5 |
call mtr.add_suppression("This is an error from test plugin"); |
| 6 |
|
| 7 |
--echo ------ Setup ------------------------------------------------ |
| 8 |
|
| 9 |
--echo ------ Run plugin ------------------------------------------------ |
| 10 |
--replace_result $TEST_SQL_RESET_CONNECTION TEST_SQL_RESET_CONNECTION |
| 11 |
eval INSTALL PLUGIN test_sql_reset_connection SONAME '$TEST_SQL_RESET_CONNECTION'; |
| 12 |
|
| 13 |
--echo ------ Stop plugin ----------------------------------------------- |
| 14 |
UNINSTALL PLUGIN test_sql_reset_connection; |
| 15 |
|
| 16 |
--disable_warnings |
| 17 |
|
| 18 |
--echo ------ Check output from tested service -------------------------------------- |
| 19 |
let $MYSQLD_DATADIR= `select @@datadir`; |
| 20 |
cat_file $MYSQLD_DATADIR/test_sql_reset_connection.log; |
| 21 |
remove_file $MYSQLD_DATADIR/test_sql_reset_connection.log; |
| 22 |
|
| 23 |
--echo ------- Cleanup -------------------------------------- |
| 24 |
|
| 25 |
--enable_warnings |