Debian Codegraph @

mysql-test/suite/service_status_var_registration/t/status_var_service_reg_unreg.test

raw
1 # Test for registration of status variables by one component, unregister by another component.
2
3 --source ../include/have_component_test_status_var_service.inc
4
5 INSTALL COMPONENT "file://component_test_status_var_service_reg_only";
6 SHOW STATUS WHERE VARIABLE_NAME LIKE 'int_var%';
7 SHOW STATUS WHERE VARIABLE_NAME LIKE 'test_int_component.int_variable';
8 SHOW STATUS WHERE VARIABLE_NAME LIKE 'test_str_component.str_variable';
9
10 INSTALL COMPONENT "file://component_test_status_var_service_unreg_only";
11
12 SELECT * FROM performance_schema.global_status WHERE VARIABLE_NAME LIKE '%component%';
13
14 UNINSTALL COMPONENT "file://component_test_status_var_service_reg_only";
15 UNINSTALL COMPONENT "file://component_test_status_var_service_unreg_only";
16
17 # Write the test results in "test_component_status_var_service.log" into the
18 # result file of this test
19 --echo ########## test_component_status_var_service_reg_only.log:
20 let $MYSQLD_DATADIR= `select @@datadir`;
21 cat_file $MYSQLD_DATADIR/test_component_status_var_service_reg_only.log;
22 remove_file $MYSQLD_DATADIR/test_component_status_var_service_reg_only.log;
23 --echo ########## test_component_status_var_service_unreg_only.log:
24 let $MYSQLD_DATADIR= `select @@datadir`;
25 cat_file $MYSQLD_DATADIR/test_component_status_var_service_unreg_only.log;
26 remove_file $MYSQLD_DATADIR/test_component_status_var_service_unreg_only.log;