2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2017-04-03 14:11:27 +02:00
.TH "\FBMYSQL\-TEST\-RUN\" "1" "3 April 2017" "MariaDB 10\&.2" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql-test-run.pl
2009-05-25 11:59:47 +02:00
.SH "NAME"
2015-09-09 14:32:52 +02:00
mysql-test-run.pl \- run MariaDB test suite
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql\-test\-run\&.pl\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
\fB mysql\- test\- run\& .pl [\fR \fB \fI options\fR \fR \fB ]\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
The
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2015-09-09 14:32:52 +02:00
Perl script is the main application used to run the MariaDB test suite\& . It invokes
2009-05-25 11:59:47 +02:00
\fB mysqltest\fR
2010-04-28 15:06:11 +02:00
to run individual test cases\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
in the
2009-09-16 14:03:18 +02:00
mysql\- test
2009-05-25 11:59:47 +02:00
directory like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
shell> \fB mysql\- test\- run\& .pl [\fR \fB \fI options\fR \fR \fB ] [\fR \fB \fI test_name\fR \fR \fB ] \& .\& .\& .\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
Each
\fI test_name\fR
2009-09-16 14:03:18 +02:00
argument names a test case\& . The test case file that corresponds to the test name is
t/\fI test_name\fR \& .test\& .
2009-05-25 11:59:47 +02:00
.PP
For each
\fI test_name\fR
argument,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
runs the named test case\& . With no
2009-05-25 11:59:47 +02:00
\fI test_name\fR
arguments,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
runs all
2009-09-16 14:03:18 +02:00
\& .test
2009-05-25 11:59:47 +02:00
files in the
2009-09-16 14:03:18 +02:00
t
subdirectory\& .
2009-05-25 11:59:47 +02:00
.PP
If no suffix is given for the test name, a suffix of
2009-09-16 14:03:18 +02:00
\& .test
is assumed\& . Any leading path name is ignored\& . These commands are equivalent:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
shell> \fB mysql\- test\- run\& .pl mytest\fR
shell> \fB mysql\- test\- run\& .pl mytest\& .test\fR
shell> \fB mysql\- test\- run\& .pl t/mytest\& .test\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2010-04-28 15:06:11 +02:00
A suite name can be given as part of the test name\& . That is, the syntax for naming a test is:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
[\fI suite_name\fR \& .]\fI test_name\fR [\& .\fI suffix\fR ]
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
If a suite name is given,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2010-04-28 15:06:11 +02:00
looks in that suite for the test\& . The test file corresponding to a test named
\fI suite_name\& .test_name\fR
is found in
suite/\fI suite_name\fR /t/\fI test_name\fR \& .test\& . There is also an implicit suite name
main
for the tests in the top
t
directory\& . With no suite name,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
looks in the default list of suites for a match and runs the test in any suites where it finds the test\& . Suppose that the default suite list is
2009-05-25 11:59:47 +02:00
main,
binlog,
rpl, and that a test
2009-09-16 14:03:18 +02:00
mytest\& .test
2009-05-25 11:59:47 +02:00
exists in the
main
and
rpl
2009-09-16 14:03:18 +02:00
suites\& . With an argument of
2009-05-25 11:59:47 +02:00
mytest
or
2009-09-16 14:03:18 +02:00
mytest\& .test,
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
will run
2009-09-16 14:03:18 +02:00
mytest\& .test
2009-05-25 11:59:47 +02:00
from the
main
and
rpl
2009-09-16 14:03:18 +02:00
suites\& .
2009-05-25 11:59:47 +02:00
.PP
To run a family of test cases for which the names share a common prefix, use the
\fB \- \- do\- test=\fR \fB \fI prefix\fR \fR
2009-09-16 14:03:18 +02:00
option\& . For example,
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test=rpl\fR
runs the replication tests (test cases that have names beginning with
2009-09-16 14:03:18 +02:00
rpl)\& .
2009-05-25 11:59:47 +02:00
\fB \- \- skip\- test\fR
2009-09-16 14:03:18 +02:00
has the opposite effect of skipping test cases for which the names share a common prefix\& .
2009-05-25 11:59:47 +02:00
.PP
2010-04-28 15:06:11 +02:00
The argument for the
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test\fR
and
\fB \- \- skip\- test\fR
2010-04-28 15:06:11 +02:00
options also allows more flexible specification of which tests to perform or skip\& . If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\& . If the argument contains a lone period or does not contain any pattern metacharacters, it is interpreted the same way as previously and matches test names that begin with the argument value\& . For example,
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test=testa\fR
matches tests that begin with
testa,
2009-09-16 14:03:18 +02:00
\fB \- \- do\- test=main\& .testa\fR
2009-05-25 11:59:47 +02:00
matches tests in the
main
test suite that begin with
testa, and
2009-09-16 14:03:18 +02:00
\fB \- \- do\- test=main\& .*testa\fR
2009-05-25 11:59:47 +02:00
matches test names that contain
main
followed by
testa
2009-09-16 14:03:18 +02:00
with anything in between\& . In the latter case, the pattern match is not anchored to the beginning of the test name, so it also matches names such as
2010-04-28 15:06:11 +02:00
xmainytesta\& .
2009-05-25 11:59:47 +02:00
.PP
To perform setup prior to running tests,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
needs to invoke
\fB mysqld\fR
with the
\fB \- \- bootstrap\fR
and
\fB \- \- skip\- grant\- tables\fR
2010-04-28 15:06:11 +02:00
options\& . If MySQL was configured with the
2009-05-25 11:59:47 +02:00
\fB \- \- disable\- grant\- options\fR
option,
\fB \- \- bootstrap\fR ,
\fB \- \- skip\- grant\- tables\fR , and
\fB \- \- init\- file\fR
2009-09-16 14:03:18 +02:00
will be disabled\& . To handle this, set the
2009-05-25 11:59:47 +02:00
MYSQLD_BOOTSTRAP
2009-09-16 14:03:18 +02:00
environment variable to the full path name of a server that has all options enabled\& .
\fB mysql\- test\- run\& .pl\fR
will use that server to perform setup; it is not used to run the tests\& .
2009-05-25 11:59:47 +02:00
.PP
The
init_file
test will fail if
\fB \- \- init\- file\fR
2009-09-16 14:03:18 +02:00
is disabled\& . This is an expected failure that can be handled as follows:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB export MYSQLD_BOOTSTRAP\fR
shell> \fB MYSQLD_BOOTSTRAP=/full/path/to/mysqld\fR
shell> \fB make test force="\- \- skip\- test=init_file"\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
To run
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
on Windows, you\' ll need either Cygwin or ActiveState Perl to run it\& . You may also need to install the modules required by the script\& . To run the test script, change location into the
mysql\- test
2009-05-25 11:59:47 +02:00
directory, set the
MTR_VS_CONFIG
environment variable to the configuration you selected earlier (or use the
\fB \- \- vs\- config\fR
option), and invoke
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR \& . For example (using Cygwin and the
2009-05-25 11:59:47 +02:00
\fB bash\fR
shell):
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB cd mysql\- test\fR
2009-09-16 14:03:18 +02:00
shell> \fB export MTR_VS_CONFIG=debug\fR
shell> \fB \& ./mysqltest\- run\& .pl \- \- force \- \- timer\fR
shell> \fB \& ./mysqltest\- run\& .pl \- \- force \- \- timer \- \- ps\- protocol\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2010-04-28 15:06:11 +02:00
uses several environment variables\& . Some of them are listed in the following table\& . Some of these are set from the outside and used by
\fB mysql\- test\- run\& .pl\fR , others are set by
\fB mysql\- test\- run\& .pl\fR
instead, and may be referred to in tests\& .
2009-05-25 11:59:47 +02:00
.TS
allbox tab(:);
l l
l l
l l
l l
l l
2010-04-28 15:06:11 +02:00
l l
l l
l l
l l
l l
l l
2009-05-25 11:59:47 +02:00
l l.
T{
\fB Variable\fR
T}:T{
\fB Meaning\fR
T}
T{
2010-04-28 15:06:11 +02:00
MTR_VERSION
2009-05-25 11:59:47 +02:00
T}:T{
2010-04-28 15:06:11 +02:00
If set to 1, will run the older version 1 of
\fB mysql\- test\- run\& .pl\fR \& . This will affect
what functionailty is available and what command line
options are supported\& .
2009-05-25 11:59:47 +02:00
T}
T{
2010-04-28 15:06:11 +02:00
MTR_MEM
2009-05-25 11:59:47 +02:00
T}:T{
2010-04-28 15:06:11 +02:00
If set to anything, will run tests with files in "memory" using tmpfs or
ramdisk\& . Not available on Windows\& . Same as
\fB \- \- mem\fR option
T}
T{
MTR_PARALLEL
T}:T{
If set, defines number of parallel threads executing tests\& . Same as
\fB \- \- parallel\fR option
T}
T{
MTR_BUILD_THREAD
T}:T{
If set, defines which port number range is used for the server
T}
T{
MTR_PORT_BASE
T}:T{
If set, defines which port number range is used for the server
T}
T{
MTR_\fI NAME\fR _TIMEOUT
T}:T{
Setting of a timeout in minutes or seconds, corresponding to command
line option
\fB \- \- \fR \fB \fI name\fR \fR \fB \- timeout\fR \& .
Avaliable timeout names are TESTCASE,
SUITE (both in minutes) and
START, SHUTDOWN
(both in seconds)\& . These variables are supported from
MySQL 5\& .1\& .44\& .
T}
T{
MYSQL_TEST
T}:T{
Path name to \fB mysqltest\fR binary
2009-05-25 11:59:47 +02:00
T}
T{
MYSQLD_BOOTSTRAP
T}:T{
Full path name to \fB mysqld\fR that has all options enabled
T}
T{
2010-04-28 15:06:11 +02:00
MYSQLTEST_VARDIR
T}:T{
Path name to the var directory that is used for
logs, temporary files, and so forth
T}
T{
MYSQL_TEST_DIR
2009-05-25 11:59:47 +02:00
T}:T{
2010-04-28 15:06:11 +02:00
Full path to the mysql\- test directory where tests
are being run from
2009-05-25 11:59:47 +02:00
T}
T{
2010-04-28 15:06:11 +02:00
MYSQL_TMP_DIR
2009-05-25 11:59:47 +02:00
T}:T{
2010-04-28 15:06:11 +02:00
Path to temp directory used for temporary files during tests
2009-05-25 11:59:47 +02:00
T}
.TE
2009-09-16 14:03:18 +02:00
.sp 1
2009-05-25 11:59:47 +02:00
.PP
2010-04-28 15:06:11 +02:00
The variable
MTR_PORT_BASE
was added in MySQL 5\& .1\& .45 as a more logical replacement for
MTR_BUILD_THREAD\& . It gives the actual port number directly (will be rounded down to a multiple of 10)\& . If you use
MTR_BUILD_THREAD, the port number is found by multiplying this by 10 and adding 10000\& .
.PP
2009-09-16 14:03:18 +02:00
Tests sometimes rely on certain environment variables being defined\& . For example, certain tests assume that
2009-05-25 11:59:47 +02:00
MYSQL_TEST
is defined so that
\fB mysqltest\fR
can invoke itself with
2009-09-16 14:03:18 +02:00
exec $MYSQL_TEST\& .
2009-05-25 11:59:47 +02:00
.PP
2014-05-13 11:53:30 +02:00
Other tests may refer to the last three variables listed in the preceding table, to locate files to read or write\& . For example, tests that need to create files will typically put them in
2010-04-28 15:06:11 +02:00
$MYSQL_TMP_DIR/\fI file_name\fR \& .
.PP
If you are running
\fB mysql\- test\- run\& .pl\fR
version 1 by setting
MTR_VERSION, note that this only affects the test driver, not the test client (and its language) or the tests themselves\& .
.PP
A few tests might not run with version 1 because they depend on some feature of version 2\& . You may have those tests skipped by adding the test name to the file
lib/v1/incompatible\& .tests\& . This feature is available from MySQL 5\& .1\& .40\& .
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
supports the options in the following list\& . An argument of
2009-05-25 11:59:47 +02:00
\fB \- \- \fR
tells
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2010-04-28 15:06:11 +02:00
not to process any following arguments as options\& .
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: help option
. \" help option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- h\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: big-test option
. \" big-test option: mysql-test-run.pl
\fB \- \- big\- test\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Allow tests marked as "big" to run\& . Tests can be thus marked by including the line
\fB \- \- source include/big_test\& .inc\fR , and they will only be run if this option is given, or if the environment variable
BIG_TEST
2015-09-09 14:32:52 +02:00
is set to 1\& . Repeat this option twice to run only "big" tests\& .
2010-04-28 15:06:11 +02:00
.sp
2015-09-09 14:32:52 +02:00
This is typically used for tests that take a very long to run, or that use many resources, so that they are not suitable for running as part of a normal test suite run\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: boot-dbx option
. \" boot-dbx option: mysql-test-run.pl
\fB \- \- boot\- dbx\fR
.sp
Run the mysqld server used for bootstrapping the database through the dbx debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: boot-ddd option
. \" boot-ddd option: mysql-test-run.pl
\fB \- \- boot\- ddd\fR
.sp
Run the mysqld server used for bootstrapping the database through the ddd debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: boot-gdb option
. \" boot-gdb option: mysql-test-run.pl
\fB \- \- boot\- gdb\fR
.sp
Run the mysqld server used for bootstrapping the database through the gdb debugger\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: build-thread option
. \" build-thread option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \-[mtr\-] build\- thread=\fR \fB \fI number\fR \fR
2010-04-28 15:06:11 +02:00
.sp
Specify a number to calculate port numbers from\& . The formula is 10 *
\fI build_thread\fR
+ 10000\& . Instead of a number, it can be set to
auto, which is also the default value, in which case
\fB mysql\- test\- run\& .pl\fR
will allocate a number unique to this host\& .
.sp
The value (number or
auto) can also be set with the
MTR_BUILD_THREAD
environment variable\& .
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
The more logical
2010-04-28 15:06:11 +02:00
\fB \- \- port\- base\fR
is supported as an alternative\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: callgrind option
. \" callgrind option: mysql-test-run.pl
\fB \- \- callgrind\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Instructs
\fB valgrind\fR
to use
\fB callgrind\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: check-testcases option
. \" check-testcases option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- check\- testcases\fR
.sp
2010-04-28 15:06:11 +02:00
Check test cases for side effects\& . This is done by checking system state before and after each test case; if there is any difference, a warning to that effect will be written, but the test case will not be marked as failed because of it\& . This check is enabled by default\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: client-bindir option
. \" client-bindir option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- client\- bindir=\fR \fB \fI path\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The path to the directory where client binaries are located\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: client-dbx option
. \" client-dbx option: mysql-test-run.pl
\fB \- \- client\- dbx\fR
.sp
Start
\fB mysqltest\fR
in the
\fB dbx\fR
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: client-ddd option
. \" client-ddd option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- client\- ddd\fR
.sp
Start
\fB mysqltest\fR
in the
\fB ddd\fR
2009-09-16 14:03:18 +02:00
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: client-debugger option
. \" client-debugger option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- client\- debugger=\fR \fB \fI debugger\fR \fR
2009-05-25 11:59:47 +02:00
.sp
Start
\fB mysqltest\fR
2009-09-16 14:03:18 +02:00
in the named debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: client-gdb option
. \" client-gdb option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- client\- gdb\fR
.sp
Start
\fB mysqltest\fR
in the
\fB gdb\fR
2009-09-16 14:03:18 +02:00
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: client-libdir option
. \" client-libdir option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- client\- libdir=\fR \fB \fI path\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The path to the directory where client libraries are located\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: combination option
. \" combination option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- combination=\fR \fB \fI value\fR \fR
.sp
Extra options to pass to
2009-09-16 14:03:18 +02:00
\fB mysqld\fR \& . The value should consist of one or more comma\- separated
2009-05-25 11:59:47 +02:00
\fB mysqld\fR
2009-09-16 14:03:18 +02:00
options\& . This option is similar to
2009-05-25 11:59:47 +02:00
\fB \- \- mysqld\fR
2009-09-16 14:03:18 +02:00
but should be given two or more times\& .
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
executes multiple test runs, using the options for each instance of
\fB \- \- combination\fR
2009-09-16 14:03:18 +02:00
in successive runs\& . If
2009-05-25 11:59:47 +02:00
\fB \- \- combination\fR
2009-09-16 14:03:18 +02:00
is given only once, it has no effect\& . For test runs specific to a given test suite, an alternative to the use of
2009-05-25 11:59:47 +02:00
\fB \- \- combination\fR
is to create a
2009-09-16 14:03:18 +02:00
combinations
2015-09-09 14:32:52 +02:00
file in the suite directory\& . The file should contain a section of options for each test run\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: comment option
. \" comment option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- comment=\fR \fB \fI str\fR \fR
.sp
Write
\fI str\fR
2010-04-28 15:06:11 +02:00
to the output within lines filled with
#, as a form of banner\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: compress option
. \" compress option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- compress\fR
.sp
2009-09-16 14:03:18 +02:00
Compress all information sent between the client and the server if both support compression\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: cursor-protocol option
. \" cursor-protocol option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- cursor\- protocol\fR
.sp
2015-09-09 14:32:52 +02:00
Use the cursor protocol between client and server
2009-05-25 11:59:47 +02:00
(implies
2009-09-16 14:03:18 +02:00
\fB \- \- ps\- protocol\fR )\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: dbx option
. \" dbx option: mysql-test-run.pl
\fB \- \- dbx\fR
.sp
Start the
\fB mysqld(s)\fR
in the
\fB dbx\fR
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: ddd option
. \" ddd option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- ddd\fR
.sp
2015-09-09 14:32:52 +02:00
Start the
\fB mysqld(s)\fR
2009-05-25 11:59:47 +02:00
in the
\fB ddd\fR
2009-09-16 14:03:18 +02:00
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: debug option
. \" debug option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- debug\fR
.sp
2009-09-16 14:03:18 +02:00
Dump trace output for all clients and servers\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: debug-common option
. \" debug-common option: mysql-test-run.pl
\fB \- \- debug\- common\fR
.sp
Same as \fB --debug\fR , but sets the 'd' debug flags to "query,info,error,enter,exit"\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: debug-server option
. \" debug-server option: mysql-test-run.pl
\fB \- \- debug\- server\fR
.sp
Use debug version of server, but without turning on tracing\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: debugger option
. \" debugger option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- debugger=\fR \fB \fI debugger\fR \fR
2009-05-25 11:59:47 +02:00
.sp
Start
\fB mysqld\fR
2009-09-16 14:03:18 +02:00
using the named debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: debug-sync-timeout option
. \" debug-sync-timeout option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- debug\- sync\- timeout=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Controls whether the Debug Sync facility for testing and debugging is enabled\& . The option value is a timeout in seconds\& . The default value is 300\& . A value of 0 disables Debug Sync\& . The value of this option also becomes the default timeout for individual synchronization points\& .
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
passes
\fB \- \- loose\- debug\- sync\- timeout=\fR \fB \fI N\fR \fR
to
2009-09-16 14:03:18 +02:00
\fB mysqld\fR \& . The
2009-05-25 11:59:47 +02:00
\fB \- \- loose\fR
prefix is used so that
\fB mysqld\fR
2009-09-16 14:03:18 +02:00
does not fail if Debug Sync is not compiled in\& .
2010-04-28 15:06:11 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: defaults-file option
2015-09-09 14:32:52 +02:00
. \" defaults-file option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- defaults\- file=\fR \fB \fI file_name\fR \fR
.sp
Use the named file as fixed config file template for all tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: defaults_extra_file option
. \" default_extra_file option: mysql-test-run.pl
\fB \- \- defaults_extra_file=\fR \fB \fI file_name\fR \fR
.sp
Add setting from the named file to all generated configs\& .
2009-09-16 14:03:18 +02:00
.RE
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: do-test option
. \" do-test option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \- do\- test=\fR \fB \fI prefix\fR \fR |\fB \fI regex\fR \fR
2009-05-25 11:59:47 +02:00
.sp
Run all test cases having a name that begins with the given
\fI prefix\fR
2015-09-09 14:32:52 +02:00
value, or fulfils the
\fI regex\fR \& . This option provides a convenient way to run a family of similarly named tests\& .
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The argument for the
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test\fR
2010-04-28 15:06:11 +02:00
option also allows more flexible specification of which tests to perform\& . If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\& . If the argument contains a lone period or does not contain any pattern metacharacters, it is interpreted the same way as previously and matches test names that begin with the argument value\& . For example,
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test=testa\fR
matches tests that begin with
testa,
2009-09-16 14:03:18 +02:00
\fB \- \- do\- test=main\& .testa\fR
2009-05-25 11:59:47 +02:00
matches tests in the
main
test suite that begin with
testa, and
2009-09-16 14:03:18 +02:00
\fB \- \- do\- test=main\& .*testa\fR
2009-05-25 11:59:47 +02:00
matches test names that contain
main
followed by
testa
2009-09-16 14:03:18 +02:00
with anything in between\& . In the latter case, the pattern match is not anchored to the beginning of the test name, so it also matches names such as
xmainytestz\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: dry-run option
. \" dry-run option: mysql-test-run.pl
\fB \- \- dry\- run\fR
.sp
Don't run any tests, print the list of tests that were selected for execution\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: embedded-server option
. \" embedded-server option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- embedded\- server\fR
.sp
Use a version of
\fB mysqltest\fR
2009-09-16 14:03:18 +02:00
built with the embedded server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: enable-disabled option
. \" enable-disabled option: mysql-test-run.pl
\fB \- \- enable\- disabled\fR
.sp
Ignore any
disabled\& .def
2015-09-09 14:32:52 +02:00
file, and also run tests marked as disabled\& . Success or failure of those tests will be reported the same way as other tests\& .
2010-04-28 15:06:11 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: experimental option
. \" experimental option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- experimental=\fR \fB \fI file_name\fR \fR
.sp
Specify a file that contains a list of test cases that should be displayed with the
[ exp\- fail ]
code rather than
[ fail ]
2015-09-09 14:32:52 +02:00
if they fail\& .
2009-12-01 08:24:05 +01:00
.sp
For an example of a file that might be specified via this option, see
mysql\- test/collections/default\& .experimental\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: extern option
. \" extern option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- extern\fR
2010-04-28 15:06:11 +02:00
\fI option\fR =\fI value\fR
.sp
Use an already running server\& . The option/value pair is what is needed by the
\fB mysql\fR
client to connect to the server\& . Each
2015-09-09 14:32:52 +02:00
\fB \- \- extern\fR option
can only take one option/value pair as an argument, so you need to repeat
2010-04-28 15:06:11 +02:00
\fB \- \- extern\fR
2015-09-09 14:32:52 +02:00
for each pair needed\& . Example:
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
.if n \{ \
.RS 4
. \}
.nf
\& ./mysql\- test\- run\& .pl \- \- extern socket=var/tmp/mysqld\& .1\& .sock alias
.fi
.if n \{ \
.RE
. \}
2009-05-25 11:59:47 +02:00
.sp
Note: If a test case has an
2009-09-16 14:03:18 +02:00
\& .opt
file that requires the server to be restarted with specific options, the file will not be used\& . The test case likely will fail as a result\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: fast option
. \" fast option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- fast\fR
.sp
2010-04-28 15:06:11 +02:00
Do not perform controlled shutdown when servers need to be restarted or at the end of the test run\& . This is equivalent to using
\- \- shutdown\- timeout=0\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: force-restart option
. \" force-restart option: mysql-test-run.pl
\fB \- \- force\- restart\fR
.sp
Always restart servers between tests\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: force option
. \" force option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- force\fR
.sp
Normally,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
exits if a test case fails\& .
2009-05-25 11:59:47 +02:00
\fB \- \- force\fR
2009-09-16 14:03:18 +02:00
causes execution to continue regardless of test case failure\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: gcov option
. \" gcov option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- gcov\fR
.sp
2015-09-09 14:32:52 +02:00
Collect coverage information after the test\& . The result is a
2009-05-25 11:59:47 +02:00
\fB gcov\fR
2015-09-09 14:32:52 +02:00
file per source and header file\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: gcov-src-dir option
. \" gcov-src-dir option: mysql-test-run.pl
\fB \- \- gcov\- src\- dir\fR
.sp
Colllect coverage only within the given subdirectory\& . For example, if you're only developing the SQL layer,
it makes sense to use \fB --gcov-src-dir=sql\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: gdb option
. \" gdb option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- gdb\fR
.sp
2015-09-09 14:32:52 +02:00
Start the
\fB mysqld(s)\fR
2009-05-25 11:59:47 +02:00
in the
\fB gdb\fR
2009-09-16 14:03:18 +02:00
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: gprof option
. \" gprof option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- gprof\fR
.sp
2015-09-09 14:32:52 +02:00
Collect profiling information using the
2009-05-25 11:59:47 +02:00
\fB gprof\fR
2009-09-16 14:03:18 +02:00
profiling tool\& .
2015-09-09 14:32:52 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: manual-dbx option
. \" manual-dbx option: mysql-test-run.pl
\fB \- \- manual\- dbx\fR
.sp
Use a server that has already been started by the user in the
\fB dbx\fR
debugger\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: manual-ddd option
. \" manual-ddd option: mysql-test-run.pl
\fB \- \- manual\- ddd\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Use a server that has already been started by the user in the
\fB ddd\fR
debugger\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: manual-debug option
. \" manual-debug option: mysql-test-run.pl
\fB \- \- manual\- debug\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Use a server that has already been started by the user in a debugger\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: manual-gdb option
. \" manual-gdb option: mysql-test-run.pl
\fB \- \- manual\- gdb\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Use a server that has already been started by the user in the
\fB gdb\fR
debugger\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: manual-lldb option
. \" manual-lldb option: mysql-test-run.pl
\fB \- \- manual\- lldb\fR
.sp
Use a server that has already been started by the user in the
\fB lldb\fR
debugger\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: mark-progress option
. \" mark-progress option: mysql-test-run.pl
\fB \- \- mark\- progress\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Marks progress with timing (in milliseconds) and line number in
var/log/\fI testname\fR \& .progress\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: max-connections option
. \" max-connections option: mysql-test-run.pl
\fB \- \- max\- connections=\fR \fB \fI num\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The maximum number of simultaneous server connections that may be used per test\& . If not set, the maximum is 128\& . Minimum allowed limit is 8, maximum is 5120\& . Corresponds to the same option for
\fB mysqltest\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: max-save-core option
. \" max-save-core option: mysql-test-run.pl
\fB \- \- max\- save\- core=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Limit the number of core files saved, to avoid filling up disks in case of a frequently crashing server\& . Defaults to 5, set to 0 for no limit\& . May also be set with the environment variable
MTR_MAX_SAVE_CORE
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: max-save-datadir option
. \" max-save-datadir option: mysql-test-run.pl
\fB \- \- max\- save\- datadir=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Limit the number of data directories saved after failed tests, to avoid filling up disks in case of frequent failures\& . Defaults to 20, set to 0 for no limit\& . May also be set with the environment variable
MTR_MAX_SAVE_DATADIR
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: max-test-fail option
. \" max-test-fail option: mysql-test-run.pl
\fB \- \- max\- test\- fail=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Stop execution after the specified number of tests have failed, to avoid using up resources (and time) in case of massive failures\& . retries are not counted, nor are failures of tests marked experimental\& . Defaults to 10, set to 0 for no limit\& . May also be set with the environment variable
2010-04-28 15:06:11 +02:00
MTR_MAX_TEST_FAIL
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: mem option
. \" mem option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- mem\fR
.sp
2010-04-28 15:06:11 +02:00
This option is not supported on Windows\& .
.sp
Run the test suite in memory, using tmpfs or ramdisk\& . This can decrease test times significantly, in particular if you would otherwise be running over a remote file system\& .
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
attempts to find a suitable location using a built\- in list of standard locations for tmpfs and puts the
2009-09-16 14:03:18 +02:00
var
directory there\& . This option also affects placement of temporary files, which are created in
var/tmp\& .
2009-05-25 11:59:47 +02:00
.sp
The default list includes
2009-09-16 14:03:18 +02:00
/dev/shm\& . You can also enable this option by setting the environment variable
MTR_MEM[=\fI dir_name\fR ]\& . If
2009-05-25 11:59:47 +02:00
\fI dir_name\fR
2009-09-16 14:03:18 +02:00
is given, it is added to the beginning of the list of locations to search, so it takes precedence over any built\- in locations\& .
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Once you have run tests with
\fB \- \- mem\fR
within a
mysql\- testdirectory, a soflink
var
will have been set up to the temporary directory, and this will be re\- used the next time, until the soflink is deleted\& . Thus, you do not have to repeat the
\fB \- \- mem\fR
option next time\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: mysqld option
. \" mysqld option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- mysqld=\fR \fB \fI value\fR \fR
.sp
Extra options to pass to
2009-09-16 14:03:18 +02:00
\fB mysqld\fR \& . The value should consist of one or more comma\- separated
2009-05-25 11:59:47 +02:00
\fB mysqld\fR
2015-09-09 14:32:52 +02:00
options\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: mysqld-env option
. \" mysqld-env option: mysql-test-run.pl
\fB \- \- mysqld\- env=\fR \fB \fI VAR=VAL\fR \fR
.sp
Specify additional environment settings for "mysqld"\& . Use additional \fB --mysqld-env\fR options to set more than one variable\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: nocheck-testcases option
. \" nocheck-testcases option: mysql-test-run.pl
\fB \- \- nocheck\- testcases\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Disable the check for test case side effects; see
\fB \- \- check\- testcases\fR
for a description\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: noreorder option
. \" noreorder option: mysql-test-run.pl
\fB \- \- noreorder\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Do not reorder tests to reduce number of restarts, but run them in exactly the order given\& . If a whole suite is to be run, the tests are run in alphabetical order, though similiar combinations will be grouped together\& . If more than one suite is listed, the tests are run one suite at a time, in the order listed\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: notimer option
. \" notimer option: mysql-test-run.pl
\fB \- \- notimer\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Cause
\fB mysqltest\fR
not to generate a timing file\& . The effect of this is that the report from each test case does not include the timing in milliseconds as it normally does\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: nowarnings option
. \" nowarnings option: mysql-test-run.pl
\fB \- \- nowarnings\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Do not look for and report errors and warning in the server logs\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: parallel option
. \" parallel option: mysql-test-run.pl
\fB \- \- parallel={\fR \fB \fI N\fR \fR \fB |auto}\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Run tests using
\fI N\fR
parallel threads\& . By default, 1 thread is used\& . Use
\fB \- \- parallel=auto\fR
for auto\- setting of
2015-09-09 14:32:52 +02:00
\fI N\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: port-base option
. \" port-base option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \-[mtr\-] port\- base=\fR \fB \fI P\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Specify base of port numbers to be used; a block of 10 will be allocated\& .
\fI P\fR
should be divisible by 10; if it is not, it will be rounded down\& . If running with more than one parallel test thread, thread 2 will use the next block of 10 and so on\& .
.sp
If the port number is given as
auto, which is also the default,
2015-09-09 14:32:52 +02:00
\fB mysql\- test\- run\& .pl\fR will allocate a number unique to this host\& . The value may also be given with the environment variable
2010-04-28 15:06:11 +02:00
MTR_PORT_BASE\& .
.sp
2015-09-09 14:32:52 +02:00
If both \fB \- \- build\- thread\fR and \fB \- \- port\- base\fR are used,
2010-04-28 15:06:11 +02:00
\fB \- \- port\- base\fR
2015-09-09 14:32:52 +02:00
takes precedence\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: print-testcases option
. \" print-testcases option: mysql-test-run.pl
\fB \- \- print\- testcases\fR
2009-12-01 08:24:05 +01:00
.sp
2010-04-28 15:06:11 +02:00
Do not run any tests, but print details about all tests, in the order they would have been run\& .
2009-12-01 08:24:05 +01:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: ps-protocol option
. \" ps-protocol option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- ps\- protocol\fR
.sp
2015-09-09 14:32:52 +02:00
Use the binary protocol between client and server\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: record option
. \" record option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- record\fR
.sp
Pass the
\fB \- \- record\fR
option to
2009-09-16 14:03:18 +02:00
\fB mysqltest\fR \& . This option requires a specific test case to be named on the command line\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: reorder option
. \" reorder option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- reorder\fR
.sp
2010-04-28 15:06:11 +02:00
Reorder tests to minimize the number of server restarts needed\& . This is the default behavior\& . There is no guarantee that a particular set of tests will always end up in the same order\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: repeat option
. \" repeat option: mysql-test-run.pl
\fB \- \- repeat=\fR \fB \fI N\fR \fR
.sp
Run each test
\fI N\fR
number of times\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: report-features option
. \" report-features option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- report\- features\fR
.sp
2015-09-09 14:32:52 +02:00
First run a "test" that reports MariaDB features, displaying the output of SHOW ENGINES and SHOW VARIABLES\& . This can be
used to verify that binaries are built with all required features\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: report-times option
. \" report-times option: mysql-test-run.pl
\fB \- \- report\- times\fR
.sp
Report how much time has been spent on different phases of test execution\& .
2010-04-28 15:06:11 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: retry option
. \" retry option: mysql-test-run.pl
\fB \- \- retry=\fR \fB \fI N\fR \fR
.sp
If a test fails, it is retried up to a maximum of
\fI N\fR
2015-09-09 14:32:52 +02:00
runs (default 1)\& . Retries are also limited by the maximum number of failures before stopping,
set with the \fB -\- retry\- failure\fR option\& . This option has no effect unless
2010-04-28 15:06:11 +02:00
\fB \- \- force\fR
is also used; without it, test execution will terminate after the first failure\& .
2009-09-16 14:03:18 +02:00
.sp
2010-04-28 15:06:11 +02:00
The
\fB \- \- retry\fR
and
\fB \- \- retry\- failure\fR
options do not affect how many times a test repeated with
\fB \- \- repeat\fR
may fail in total, as each repetition is considered a new test case, which may in turn be retried if it fails\& .
2009-09-16 14:03:18 +02:00
.RE
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: retry-failure option
. \" retry-failure option: mysql-test-run.pl
\fB \- \- retry\- failure=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
When using the \fB -\- retry\fR option to retry failed tests,
2016-03-04 01:09:37 +01:00
stop when N failures have occurred (default 2)\& . Setting it to 0 or 1 effectively turns off retries\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: shutdown-timeout option
. \" shutdown-timeout option: mysql-test-run.pl
\fB \- \- shutdown\- timeout=\fR \fB \fI SECONDS\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Max number of seconds to wait for servers to do controlled shutdown before killing them\& . Default is 10\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: skip-combinations option
. \" skip-combinations option: mysql-test-run.pl
\fB \- \- skip\- combinations\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Do not apply combinations; ignore combinations file or option\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: skip-rpl option
. \" skip-rpl option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- skip\- rpl\fR
.sp
2009-09-16 14:03:18 +02:00
Skip replication test cases\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: skip-ssl option
. \" skip-ssl option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- skip\- ssl\fR
.sp
Do not start
\fB mysqld\fR
2009-09-16 14:03:18 +02:00
with support for SSL connections\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: skip-test option
. \" skip-test option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \- skip\- test=\fR \fB \fI regex\fR \fR |\fR \fB \fI regex\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Specify a regular expression to be applied to test case names\& . Cases with names that match the expression are skipped\& . tests to skip\& .
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The argument for the
2009-05-25 11:59:47 +02:00
\fB \- \- skip\- test\fR
2009-09-16 14:03:18 +02:00
option allows more flexible specification of which tests to skip\& . If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\& . See the description of the
2009-05-25 11:59:47 +02:00
\fB \- \- do\- test\fR
2009-09-16 14:03:18 +02:00
option for details\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: skip-test-list option
. \" skip-test-list option: mysql-test-run.pl
\fB \- \- skip\- test\- list=\fB \fI FILE\fR
.sp
Skip the tests listed in FILE\& . Each line in the file is an entry and should be formatted as: <TESTNAME> : <COMMENT>
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- \- skip\- *\fR
.sp
\fB \- \- skip\- *\fR
options not otherwise recognized by
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
are passed to the master server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: sleep option
. \" sleep option: mysql-test-run.pl
\fB \- \- sleep=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Pass
\fB \- \- sleep=\fR \fB \fI N\fR \fR
to
\fB mysqltest\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: sp-protocol option
. \" sp-protocol option: mysql-test-run.pl
\fB \- \- sp\- protocol\fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Create a stored procedure to execute all queries\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: ssl option
. \" ssl option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- ssl\fR
.sp
If
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
is started with the
\fB \- \- ssl\fR
2015-09-09 14:32:52 +02:00
option, it sets up a secure connection for all test cases\& . In this case, if
2009-05-25 11:59:47 +02:00
\fB mysqld\fR
does not support SSL,
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
exits with an error message:
2009-09-16 14:03:18 +02:00
Couldn\' t find support for SSL
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: staging-run option
. \" staging-run option: mysql-test-run.pl
\fB \- \- staging\- run\fR
.sp
Run a limited number of tests (no slow tests)\& . Used for running staging trees with valgrind\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: start-and-exit option
. \" start-and-exit option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- start\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Initialize and start servers with the startup settings for the specified test case\& . You can use this option to start a server to which you can connect later\& . For example, after building a source distribution you can start a server and connect to it with the
2009-05-25 11:59:47 +02:00
\fB mysql\fR
client like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB cd mysql\- test\fR
2010-04-28 15:06:11 +02:00
shell> \fB \& ./mysql\- test\- run\& .pl \- \- start alias &\fR
2009-09-16 14:03:18 +02:00
shell> \fB \& .\& ./mysql \- S \& ./var/tmp/master\& .sock \- h localhost \- u root\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
.RE
. \}
2010-04-28 15:06:11 +02:00
.sp
If no tests are named on the command line, the server(s) will be started with settings for the first test that would have been run without the
\fB \- \- start\fR
option\& .
.sp
\fB mysql\- test\- run\& .pl\fR
will stop once the server has been started, but will terminate if the server dies\& . If killed, it will also shut down the server\& .
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: start-and-exit option
. \" start-and-exit option: mysql-test-run.pl
\fB \- \- start\- and\- exit\fR
.sp
Same
\fB \- \- start\fR , but mysql-test-run terminates and leaves just the server running\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: start-dirty option
. \" start-dirty option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- start\- dirty\fR
.sp
2010-04-28 15:06:11 +02:00
This is similar to
\fB \- \- start\fR , but will skip the database initialization phase and assume that database files are already available\& . Usually this means you must have run another test first\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: start-from option
. \" start-from option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- start\- from=\fR \fB \fI test_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
\fB mysql\- test\- run\& .pl\fR
2009-05-25 11:59:47 +02:00
sorts the list of names of the test cases to be run, and then begins with
2009-09-16 14:03:18 +02:00
\fI test_name\fR \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2015-09-09 14:32:52 +02:00
. \" mysql-test-run.pl: strace option
. \" strace option: mysql-test-run.pl
\fB \- \- strace\fR
.sp
Run the "mysqld" executables using strace. Default options are \fB -f -o var/log/'mysqld-name'.strace\fR \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql-test-run.pl: strace-client option
. \" strace-client option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- strace\- client\fR
.sp
Create
\fB strace\fR
output for
2015-09-09 14:32:52 +02:00
\fB mysqltest\fR , optionally specifying name and path
to the trace program to use\& .
.sp
Example: \& ./mysql\- test\- run\& .pl \- \- strace\- client=ktrace
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: strace-option option
. \" strace-option option: mysql-test-run.pl
\fB \- \- strace\- option\fR =\fR \fB \fI ARGS\fR \fR
.sp
Option to give
\fB strace\fR ,
replaces default option(s)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: stress option
. \" stress option: mysql-test-run.pl
\fB \- \- stress=\fR \fB \fI ARGS\fR \fR
.sp
Run stress test, providing options to mysql\- stress\- test\& .pl\& . Options are separated by comma\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: suite option
. \" suite option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \- suite[s]=\fR \fB \fI suite_name...\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2019-11-29 13:21:23 +01:00
Comma separated list of suite names to run. The default is:
"main-,archive-,binlog-,csv-,federated-,funcs_1-,funcs_2-,
handler-,heap-,innodb-,innodb_fts-,innodb_zip-,maria-,
multi_source-,optimizer_unfixed_bugs-,parts-,perfschema-,
2015-09-09 14:32:52 +02:00
plugins-,roles-,rpl-,sys_vars-,unit-,vcol-"\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: stop-file option
. \" stop-file option: mysql-test-run.pl
\fB \- \- stop\- file=\fR \fB \fI file\fR \fR
.sp
If this file is detected, mysqltest will not start new tests until the file is removed (also MTR_STOP_FILE environment variable)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: stop-keep-alive option
. \" stop-keep-alive option: mysql-test-run.pl
\fB \- \- stop\- keep\- alive=\fR \fB \fI sec\fR \fR
.sp
Works with \fB --stop-file\fR , print messages every \fI sec\fR seconds when mysqltest is waiting to remove the file (for buildbot) (also MTR_STOP_KEEP_ALIVE environment variable)\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: suite-timeout option
. \" suite-timeout option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- suite\- timeout=\fR \fB \fI minutes\fR \fR
.sp
2015-09-09 14:32:52 +02:00
Specify the maximum test suite runtime in minutes\& . The default is 360\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: testcase-timeout option
. \" testcase-timeout option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- testcase\- timeout\fR
.sp
2015-09-09 14:32:52 +02:00
Specify the maximum test case runtime in minutes\& . The default is 15\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: timediff option
. \" timediff option: mysql-test-run.pl
\fB \- \- timediff\fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Used with \fB \- \- timestamp\fR , also print time passed since the previous test started\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: timer option
. \" timer option: mysql-test-run.pl
\fB \- \- timer\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Cause
\fB mysqltest\fR
to generate a timing file\& . The default file is named
\& ./var/log/timer\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: timestamp option
. \" timestamp option: mysql-test-run.pl
\fB \- \- timestamp\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Prints a timestamp before the test case name in each test report line, showing when the test ended\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: tmpdir option
. \" tmpdir option: mysql-test-run.pl
\fB \- \- tmpdir=\fR \fB \fI path\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
The directory where temporary file are stored\& . The default location is
\& ./var/tmp\& . The environment variable
MYSQL_TMP_DIR
will be set to the path for this directory, whether it has the default value or has been set explicitly\& . This may be referred to in tests\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: user option
. \" user option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR
.sp
2015-09-09 14:32:52 +02:00
The MariaDB user name to use when connecting to the server (default root)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: user-args option
. \" user-args option: mysql-test-run.pl
\fB \- \- user\- args\fR
.sp
In combination with \fB start*\fR and no test name, drops arguments to mysqld except those specified with \fB \- \- mysqld\fR (if any)\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: valgrind option
. \" valgrind option: mysql-test-run.pl
2015-09-09 14:32:52 +02:00
\fB \- \- valgrind[\- all]\fR
2009-05-25 11:59:47 +02:00
.sp
Run
\fB mysqltest\fR
and
\fB mysqld\fR
with
2015-09-09 14:32:52 +02:00
\fB valgrind\fR \& . This and the following
2010-04-28 15:06:11 +02:00
\fB \- \- valgrind\fR
2015-09-09 14:32:52 +02:00
options require that the executables have been built with
2010-04-28 15:06:11 +02:00
\fB valgrind\fR
support\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: valgrind-mysqld option
. \" valgrind-mysqld option: mysql-test-run.pl
\fB \- \- valgrind\- mysqld\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Run the
\fB mysqld\fR
server with
2009-09-16 14:03:18 +02:00
\fB valgrind\fR \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: valgrind-mysqltest option
. \" valgrind-mysqltest option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- valgrind\- mysqltest\fR
.sp
2015-09-09 14:32:52 +02:00
Run the
2009-05-25 11:59:47 +02:00
\fB mysqltest\fR
2015-09-09 14:32:52 +02:00
and
\fB mysql_client_test\fR
executables with
2009-09-16 14:03:18 +02:00
\fB valgrind\fR \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: valgrind-options option
. \" valgrind-options option: mysql-test-run.pl
2010-04-28 15:06:11 +02:00
\fB \- \- valgrind\- option=\fR \fB \fI str\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Option to give \fB valgrind\fR . Replaces default option(s)\& . Can be specified more then once&.
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: valgrind-path option
. \" valgrind-path option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- valgrind\- path=\fR \fB \fI path\fR \fR
.sp
2015-09-09 14:32:52 +02:00
Path to the
2009-05-25 11:59:47 +02:00
\fB valgrind\fR
2009-09-16 14:03:18 +02:00
executable\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-test-run.pl: vardir option
. \" vardir option: mysql-test-run.pl
2009-05-25 11:59:47 +02:00
\fB \- \- vardir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Specify the path where files generated during the test run are stored\& . The default location is
2010-04-28 15:06:11 +02:00
\& ./var\& . The environment variable
MYSQLTEST_VARDIR
will be set to the path for this directory, whether it has the default value or has been set explicitly\& . This may be referred to in tests\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: verbose option
. \" verbose option: mysql-test-run.pl
\fB \- \- verbose\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Give more verbose output regarding test execution\& . Use the option twice to get even more output\& . Note that the output generated within each test case is not affected\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: verbose-restart option
. \" verbose-restart option: mysql-test-run.pl
\fB \- \- verbose\- restart\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Write when and why servers are restarted between test cases\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: view-protocol option
. \" view-protocol option: mysql-test-run.pl
\fB \- \- view\- protocol\fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Create a view to execute all non updating queries\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: vs-config option
. \" vs-config option: mysql-test-run.pl
\fB \- \- vs\- config=\fR \fB \fI config_val\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Visual Studio configuration used to create executables
(default: MTR_VS_CONFIG environment variable)
This option is for Windows only\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: wait-all option
. \" wait-all option: mysql-test-run.pl
\fB \- \- wait\- all\fR
.sp
If
\fB \- \- start\fR
or
\fB \- \- start\- dirty\fR
2015-09-09 14:32:52 +02:00
is used, wait for all servers to exit before termination\& . Otherwise, it will terminate if one (of several) servers is restarted\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2010-04-28 15:06:11 +02:00
. \" mysql-test-run.pl: warnings option
. \" warnings option: mysql-test-run.pl
\fB \- \- warnings\fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Search the server log for errors or warning after each test and report any suspicious ones; if any are found, the test will be marked as failed\& . This is the default behavior, it may be turned off with
\fB \- \- nowarnings\fR \& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2015-09-09 14:32:52 +02:00
Copyright \(co 2007, 2010, Oracle and/or its affiliates, 2010-2015 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2019-05-11 20:29:06 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).