| 1 |
# Base test for registration of system variables by components. |
| 2 |
|
| 3 |
--source ../include/have_component_test_status_var_service.inc |
| 4 |
|
| 5 |
call mtr.add_suppression("duplicate variable name"); |
| 6 |
call mtr.add_suppression("variable name 'test_component.int_var' not found"); |
| 7 |
--echo # Simple load test |
| 8 |
INSTALL COMPONENT "file://component_test_status_var_service"; |
| 9 |
|
| 10 |
--echo # Testing integer and bool type variable |
| 11 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.int_var'; |
| 12 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.bool_var'; |
| 13 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.long_var'; |
| 14 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.longlong_var'; |
| 15 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.func_var'; |
| 16 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.array'; |
| 17 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.char_var'; |
| 18 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.char_ptr_var'; |
| 19 |
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE 'test_component.double'; |
| 20 |
|
| 21 |
SELECT * FROM performance_schema.session_status WHERE VARIABLE_NAME LIKE 'test_component%'; |
| 22 |
|
| 23 |
SELECT * FROM performance_schema.global_status WHERE VARIABLE_NAME LIKE 'test_component%'; |
| 24 |
|
| 25 |
UNINSTALL COMPONENT "file://component_test_status_var_service"; |
| 26 |
|
| 27 |
# Write the test results in "test_component_status_var_service.log" into the |
| 28 |
# result file of this test |
| 29 |
--echo ########## test_component_sys_var_service.log: |
| 30 |
let $MYSQLD_DATADIR= `select @@datadir`; |
| 31 |
cat_file $MYSQLD_DATADIR/test_component_status_var_service.log; |
| 32 |
remove_file $MYSQLD_DATADIR/test_component_status_var_service.log; |