|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Skip navigation links
The MySQL Test Framework :: 4 MySQL Test Programs :: 4.3 mysql-test-run.pl â Run MySQL Test Suite Section Navigation [Toggle]
The mysql-test-run.pl Perl script is the main application used to run the MySQL test suite. It invokes mysqltest to run individual test cases. (Prior to MySQL 4.1, a similar shell script, mysql-test-run, can be used instead.)
Invoke mysql-test-run.pl in the
shell>
Each
For each
If no suffix is given for the test name, a suffix of
shell> As of MySQL 5.1.23, a suite name can be given as part of the test name. That is, the syntax for naming a test is: [
If a suite name is given, mysql-test-run.pl
looks in that suite for the test. With no suite name,
mysql-test-run.pl 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
To run a family of test cases for which the names share a common
prefix, use the
As of MySQL 5.0.54/5.1.23/6.0.5, the argument for the
To perform setup prior to running tests,
mysql-test-run.pl needs to invoke
mysqld with the
The shell>
To run mysql-test-run.pl 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
shell>
If you have a copy of mysqld running on the
machine where you want to run the test suite, you do not have to
stop it, as long as it is not using ports
shell> mysql-test-run.pl defines several environment variables. Some of them are listed in the following table.
Tests sometimes rely on certain environment variables being
defined. For example, certain tests assume that
mysql-test-run.pl supports the options in the
following list. An argument of
Notemysql-test-run supports the following
options not supported by mysql-test-run.pl:
Conversely, mysql-test-run.pl supports the
following options not supported by
mysql-test-run:
© 1995-2008 MySQL AB. All rights reserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


