Debian Codegraph @

mysql-test/suite/component_keyring_file/inc/setup_component_customized.inc

raw
1 # Setup test to use keyring component
2
3 --echo # ----------------------------------------------------------------------
4 --echo # Setup
5
6 --let PLUGIN_DIR_OPT = $KEYRING_FILE_COMPONENT_OPT
7
8 --let COMPONENT_LIBRARY = `SELECT SUBSTRING_INDEX('$KEYRING_FILE_COMPONENT_LOAD', '=', -1)`
9 --let COMPONENT_DIR = $KEYRING_FILE_COMPONENT_DIR
10 --let COMPONENT_NAME = `SELECT SUBSTRING_INDEX('$COMPONENT_LIBRARY', '.', 1)`
11 --let GLOBAL_MANIFEST_CONTENT = `SELECT CONCAT('{ \"components\": \"file://', '$COMPONENT_NAME', '\" }')`
12 # Create manifest file for mysqld binary
13 --source include/keyring_tests/helper/binary_create_customized_manifest.inc
14
15 # Create global keyring config
16 --let KEYRING_FILE_PATH = `SELECT CONCAT( '$MYSQLTEST_VARDIR', '/keyring_file')`
17 --let KEYRING_CONFIG_CONTENT = `SELECT CONCAT('{ \"path\": \"', '$KEYRING_FILE_PATH','\", \"read_only\": false }')`
18 --source include/keyring_tests/helper/global_keyring_create_customized_config.inc
19
20 # Restart server with manifest file
21 --source include/keyring_tests/helper/start_server_with_manifest.inc
22 --echo # ----------------------------------------------------------------------
23