File: test_session_audit_null.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (49 lines) | stat: -rw-r--r-- 1,845 bytes parent folder | download
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;