29 lines
1.7 KiB
Plaintext
29 lines
1.7 KiB
Plaintext
call mtr.add_suppression("This is a warning from test plugin");
|
|
call mtr.add_suppression("This is an error from test plugin");
|
|
------ Run plugin ------------------------------------------------
|
|
INSTALL PLUGIN test_services_threaded SONAME 'TESTSERVICESTHREADED';
|
|
------ Wait until test execution in plugin is ready --------------
|
|
let wait_timeout= 60
|
|
let wait_condition=SELECT variable_value= 1 FROM information_schema.global_status
|
|
WHERE variable_name LIKE 'test_services_status';
|
|
source include/wait_condition.inc;
|
|
------ Stop plugin -----------------------------------------------
|
|
UNINSTALL PLUGIN test_services_threaded;
|
|
------ Service: my_snprintf --------------------------------------
|
|
Starting test of my_snprintf in test_services_threaded.
|
|
This is a text output of test_services_threaded formatted with my_snprintf.
|
|
Shutting down test of my_snprintf in test_services_threaded.
|
|
------ Service: my_plugin_log_service ----------------------------
|
|
CREATE TABLE t1 (c1 varchar(30), c2 TEXT);
|
|
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/log/mysqld.1.err' INTO TABLE t1
|
|
FIELDS TERMINATED BY ' [';
|
|
SELECT replace(c2,'\r','') FROM t1 WHERE c2 LIKE '%test_services_threaded%';
|
|
replace(c2,'\r','')
|
|
Note] Plugin test_services_threaded reported: 'Test_services_threaded with_snprintf_val: 1'
|
|
Note] Plugin test_services_threaded reported: 'Test_services_threaded with_log_message_val: 1'
|
|
Note] Plugin test_services_threaded reported: 'This is the test plugin for services'
|
|
Warning] Plugin test_services_threaded reported: 'This is a warning from test plugin for services'
|
|
ERROR] Plugin test_services_threaded reported: 'This is an error from test plugin for services'
|
|
Note] Shutting down plugin 'test_services_threaded'
|
|
DROP TABLE IF EXISTS t1;
|