| 1 |
# |
| 2 |
# Check if server has support for loading plugins |
| 3 |
# |
| 4 |
if (`SELECT @@have_dynamic_loading != 'YES'`) { |
| 5 |
--skip Rewrite example plugin requires dynamic loading |
| 6 |
} |
| 7 |
|
| 8 |
# Test requires: sp-protocol/ps-protocol/view-protocol/cursor-protocol disabled |
| 9 |
--source include/no_protocol.inc |
| 10 |
--source include/no_opt_trace_protocol.inc |
| 11 |
--source include/no_explain_protocol.inc |
| 12 |
--source include/no_json_explain_protocol.inc |
| 13 |
# |
| 14 |
# Check if the variable REWRITE_EXAMPLE is set |
| 15 |
# |
| 16 |
if (!$REWRITE_EXAMPLE) { |
| 17 |
--skip Rewrite example plugin requires the environment variable \$REWRITE_EXAMPLE to be set (normally done by mtr) |
| 18 |
} |
| 19 |
|
| 20 |
# |
| 21 |
# Check if --plugin-dir was setup for exampledb |
| 22 |
# |
| 23 |
if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$REWRITE_EXAMPLE_OPT/'`) { |
| 24 |
--skip Rewrite Example plugin requires that --plugin-dir is set to the example plugin dir (either the .opt file does not contain \$REWRITE_EXAMPLE_OPT or another plugin is in use) |
| 25 |
} |
| 26 |
enable_query_log; |