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:
--mysqldoption tells mysql-test-run.pl to start the mysqld server with the named option added. More than one such extra option may be provided. The following command causes
--key_buffer_size=16384to be passed to mysqld:
mysql-test-run.pl --mysqld=--skip-innodb --mysqld=--key_buffer_size=16384
--mysqldneeds to be repeated for each server option to add. It does not work to add several server options with one
--mysqldeven if enclosed in quotation marks, as that will be interpreted as a single server option (including spaces).
--combinationoption is similar to
--mysqld, but behaves differently. mysql-test-run.pl executes multiple test runs, using the options for each instance of
--combinationin successive runs. The following command passes
--skip-innodbto mysqld for the first test run, and
--innodb-file-per-tablefor the second test run:
--combinationis given only once, it has no effect.
For test runs specific to a given test suite, an alternative to the use of the
--combinationoption is to create a
combinationsfile in the suite directory. The file should contain a section of options for each test run. For an example, see Section 4.13.1, “Controlling the Binary Log Format Used for an Entire Test Run”.
--mysqltestoption is used to pass extra options to mysqltest.
For an example, see Section 5.3, “mysql-test-run.pl — Run MySQL Test Suite”.