mysql-test-run.pl supports several options that enable you to pass options to other programs. Each of these options takes a value consisting of one or more comma-separated options:
The --mysqld
option tells
mysql-test-run.pl to start the
mysqld server with the named options. The
following command causes --skip-innodb
and
--key_buffer_size=16384
to be passed to
mysqld:
shell> mysql-test-run.pl --mysqld=--skip-innodb,--key_buffer_size=16384
The --combination
option is similar to
--mysqld
, but should be specified two or more
times. mysql-test-run.pl executes multiple
test runs, using the options for each instance of
--combination
in successive runs. The
following command passes --skip-innodb
to
mysqld for the first test run, and
--innodb
and
--innodb-file-per-table
for the second test
run:
shell>mysql-test-run.pl
--combination=--skip-innodb
--combination=--innodb,--innodb-file-per-table
If --combination
is given only once, it has
no effect.
For test runs specific to a given test suite, an alternative
to the use of the --combination
option is to
create a combinations
file in the suite
directory. The file should contain a section of options for
each test run. For an example, see
Section 4.12.1, “Controlling the Binary Log Format Used for an Entire Test Run”.
The --combination
option and
combinations
file can be used as of MySQL
5.1.23/6.0.4.
The --mysqltest
option tells
mysql-test-run.pl to start
mysqltest with the named options. The
following command passes --quiet
,
--sleep=5
, and
--mark-progress
to
mysqltest:
shell> mysql-test-run.pl --mysqltest=--quiet,--sleep=5,--mark-progress
The --mysqltest
option can be used as of
MySQL 6.0.6.