| 1 |
--source include/have_component_keyring_file.inc |
| 2 |
--source include/windows.inc |
| 3 |
|
| 4 |
--echo # |
| 5 |
--echo # Bug #32950322: SERVER GIVES ERROR WHILE LOADING COMPONENT ON WINDOWS |
| 6 |
--echo # |
| 7 |
|
| 8 |
--echo # ---------------------------------------------------------------------- |
| 9 |
--echo # Setup |
| 10 |
|
| 11 |
--let PLUGIN_DIR_OPT = $KEYRING_FILE_COMPONENT_OPT |
| 12 |
|
| 13 |
# Data directory location |
| 14 |
--let CURRENT_DATADIR = `SELECT @@datadir` |
| 15 |
|
| 16 |
--let COMPONENT_LIBRARY = `SELECT SUBSTRING_INDEX('$KEYRING_FILE_COMPONENT_LOAD', '=', -1)` |
| 17 |
--let COMPONENT_DIR = $KEYRING_FILE_COMPONENT_DIR |
| 18 |
--let COMPONENT_NAME = `SELECT SUBSTRING_INDEX('$COMPONENT_LIBRARY', '.', 1)` |
| 19 |
|
| 20 |
# Create local keyring config |
| 21 |
--let KEYRING_FILE_PATH = `SELECT CONCAT( '$MYSQLTEST_VARDIR', '/keyring_file')` |
| 22 |
--let KEYRING_CONFIG_CONTENT = `SELECT CONCAT('{ \"path\": \"', '$KEYRING_FILE_PATH','\", \"read_only\": false }')` |
| 23 |
--source include/keyring_tests/helper/local_keyring_create_config.inc |
| 24 |
|
| 25 |
# Create local windows line ending manifest file for current server instance |
| 26 |
--let LOCAL_MANIFEST_CONTENT = `SELECT CONCAT('{\r\n \"components\": \"file://', '$COMPONENT_NAME', '\"\r\n }\r\n')` |
| 27 |
--source include/keyring_tests/helper/instance_create_manifest.inc |
| 28 |
|
| 29 |
# Restart server with manifest file |
| 30 |
--source include/keyring_tests/helper/start_server_with_manifest.inc |
| 31 |
--echo # ---------------------------------------------------------------------- |
| 32 |
|
| 33 |
# Success criteria: should not produce warnings and should load the component |
| 34 |
--let $expected_errors=0 |
| 35 |
--let $assert_text= Expect MY-013709 to appear $expected_error times. |
| 36 |
-- let $assert_cond= [SELECT COUNT(*) as received_errors FROM performance_schema.error_log WHERE error_code="MY-013709", received_errors, 1] = $expected_errors |
| 37 |
--source include/assert.inc |
| 38 |
|
| 39 |
--source ../inc/teardown_component.inc |