Debian Codegraph @

mysql-test/suite/test_service_sql_api/t/test_session_audit_null.test

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