########## The MySQL Test Framework ########## /** @page PAGE_MYSQL_TEST_RUN The MySQL Test Framework This manual describes the MySQL test framework, consisting of the test driver and the test script language. -----
Variable | Description |
---|---|
MTR_BUILD_THREAD | If set, defines which port number range is used for the server |
MTR_MAX_PARALLEL | If set, defines maximum number of parallel threads if `--parallel`=auto is given |
MTR_MEM | If set to anything, will run tests with files in "memory" using tmpfs or ramdisk. Not available on Windows. Same as `--mem` option |
MTR_NAME_TIMEOUT | Setting of a timeout in minutes or seconds, corresponding to command line option `--name-timeout`. Avaliable timeout names are TESTCASE, SUITE (both in minutes) and START, SHUTDOWN, CTEST (all in seconds). MTR_CTEST_TIMEOUT is for ctest unit tests. |
MTR_PARALLEL | If set, defines number of parallel threads executing tests. Same as `--parallel` option |
MTR_PORT_BASE | If set, defines which port number range is used for the server |
MTR_RECORD | Set to 1 if a MTR run is started with `--record` option, 0 otherwise. |
MTR_UNIQUE_IDS_DIR | The method in which the free ports are allocated is by maintaining a list under the unique ids directory. In case there are multiple chroot environments on the same host, then the same set of ports may get allocated for all environments, because there will be multiple unique ids directories in different physical locations, but MTR assumes it is the same directory. This will lead to a conflict while reserving ports for the different MTR runs. To avoid this problem, when using chroot environments, MTR_UNIQUE_IDS_DIR environment variable can be set to a common location, so that all the MTR processes will use the same unique ids directory. Users have to make sure this variable is set to the same path on all environments, and that this common path is mounted on all the environments. |
MYSQL_CONFIG_EDITOR | Path name to mysql_config_editor binary. |
MYSQL_TEST | Path name to @ref PAGE_MYSQLTEST "mysqltest" binary |
MYSQL_TEST_DIR | Full path to the mysql-test directory where tests are being run from |
MYSQL_TEST_LOGIN_FILE | Path name to login file used by mysql_config_editor. If not set, the default is $HOME/.mylogin.cnf, or \%APPDATA%\\MySQL\\\.mylogin.cnf on Windows. |
MYSQL_TMP_DIR | Path to temp directory used for temporary files during tests |
MYSQLD | Full path to server executable used in tests. |
MYSQLD_BOOTSTRAP | Full path name to mysqld that has all options enabled |
MYSQLD_BOOTSTRAP_CMD | Full command line used for initial database setup for this test batch |
MYSQLD_CMD | Command line for starting server as used in tests, with the minimum set of required arguments. |
MYSQLTEST_VARDIR | Path name to the var directory that is used for logs, temporary files, and so forth |
NUMBER_OF_CPUS | Defines number of processors. |
TSAN_OPTIONS | Path name to a file containing ThreadSanitizer suppressions. |