Debian Codegraph @

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

raw
1 --source include/xplugin_wait_for_interfaces.inc
2 --disable_ps_protocol
3 --replace_column 1 <ID> 3 <HOST_NAME> 6 <TIME>
4 /*first*/SELECT * FROM information_schema.processlist WHERE command LIKE 'query';
5 --enable_ps_protocol
6
7 --echo ##########################################
8 --echo # Run plugin
9 --echo ##########################################
10 --replace_result $TEST_SQL_PROCESSLIST TEST_SQL_PROCESSLIST
11 eval INSTALL PLUGIN test_sql_processlist SONAME '$TEST_SQL_PROCESSLIST';
12 let $wait_condition=SELECT count(*)>0 FROM information_schema.plugins WHERE plugin_name like 'test_sql_processlist';
13 --source include/wait_condition.inc
14
15 --echo ##########################################
16 --echo # Plugin log
17 --echo ##########################################
18 let $MYSQLD_DATADIR= `select @@datadir`;
19 cat_file $MYSQLD_DATADIR/test_sql_processlist.log;
20 remove_file $MYSQLD_DATADIR/test_sql_processlist.log;
21
22 --echo ##########################################
23 --echo # Stop plugin
24 --echo ##########################################
25 UNINSTALL PLUGIN test_sql_processlist;
26 let $wait_condition=SELECT count(*)=0 FROM information_schema.plugins WHERE plugin_name like 'test_sql_processlist';
27 --source include/wait_condition.inc
28
29 --disable_ps_protocol
30 --replace_column 1 <ID> 3 <HOST_NAME> 6 <TIME>
31 /*second*/SELECT * FROM information_schema.processlist WHERE command LIKE 'query';
32 --enable_ps_protocol