1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
# This test requires more than one plugin, below inc file checks if the plugins
# exists and in the same directory.
--let plugins= AUDIT_NULL,TEST_SESSION_IN_THD
--source include/check_plugin_dir.inc
# X plugin might increase counter Audit_null_connection_*
source include/xplugin_wait_for_interfaces.inc;
--echo ##########################################
--echo # Run audit_null plugin
--echo ##########################################
# Adjustment to the OS dependent extension of shared libraries.
let $expected_extension= so;
if(`SELECT CONVERT(@@version_compile_os USING latin1)
IN ("Win32","Win64","Windows")`)
{
let $expected_extension= dll;
}
--replace_result $expected_extension <expected_extension>
eval INSTALL PLUGIN null_audit SONAME 'adt_null.$expected_extension';
--echo # Before installing test_session_in_thd plugin
SHOW STATUS LIKE 'audit_null_connection%';
--echo ##########################################
--echo # Start plugin with audit null
--echo ##########################################
--replace_result $TEST_SESSION_IN_THD TEST_SESSION_IN_THD
eval INSTALL PLUGIN test_session_in_thd SONAME '$TEST_SESSION_IN_THD';
--echo ##########################################
--echo # Stop plugin
--echo ##########################################
UNINSTALL PLUGIN test_session_in_thd;
--echo ##########################################
--echo # Plugin log
--echo ##########################################
let $MYSQLD_DATADIR= `select @@datadir`;
cat_file $MYSQLD_DATADIR/test_session_in_thd.log;
remove_file $MYSQLD_DATADIR/test_session_in_thd.log;
--echo # After installing test_session_in_thd plugin
SHOW STATUS LIKE 'audit_null_connection%';
--echo ##########################################
--echo # Stop audit_null plugin
--echo ##########################################
UNINSTALL PLUGIN null_audit;
|