39 lines
1.7 KiB
Plaintext
39 lines
1.7 KiB
Plaintext
################################################################################
|
|
# Test case to test functionality in which a plugin/component can add its own
|
|
# tables in performance schema.
|
|
#
|
|
# This test script:
|
|
# - Tries to load plugin during server bootstrap with --early_plugin_load
|
|
# option.
|
|
################################################################################
|
|
|
|
--echo #########
|
|
--echo # SETUP #
|
|
--echo #########
|
|
|
|
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] \\[[^]]*\\] Plugin pfs_example_plugin_employee reported: 'Error returned from add_tables\\(\\)'");
|
|
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] \\[[^]]*\\] Plugin 'pfs_example_plugin_employee' init function returned error.");
|
|
|
|
let server_log= $MYSQLTEST_VARDIR/log/mysqld.1.err;
|
|
# $server_log has to be processed by include/search_pattern.inc which
|
|
# contains Perl code requiring that the environment variable SEARCH_FILE points
|
|
# to this file.
|
|
let SEARCH_FILE= $server_log;
|
|
|
|
--echo # Make sure that the errors, which are returned when plugin is tried to
|
|
--echo # be loaded with --early_plugin_load option, are present in server log.
|
|
let SEARCH_PATTERN= Plugin pfs_example_plugin_employee reported: 'Error returned from add_tables\(\)';
|
|
--source include/search_pattern.inc
|
|
|
|
let SEARCH_PATTERN= Plugin 'pfs_example_plugin_employee' init function returned error.;
|
|
--source include/search_pattern.inc
|
|
|
|
--echo # Install pfs_example_plugin_employee plugin after server is started.
|
|
--replace_regex /\.so|\.dll/.xxx/
|
|
--eval INSTALL PLUGIN pfs_example_plugin_employee SONAME '$PFS_EXAMPLE_PLUGIN_EMPLOYEE'
|
|
|
|
--echo ###########
|
|
--echo # CLEANUP #
|
|
--echo ###########
|
|
--eval UNINSTALL PLUGIN pfs_example_plugin_employee
|