|
|
80384c |
Improve the documentation that will be installed in the mysql-test RPM.
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
diff -Naur mysql-5.5.20.orig/mysql-test/README mysql-5.5.20/mysql-test/README
|
|
|
80384c |
--- mysql-5.5.20.orig/mysql-test/README 2011-12-16 14:52:05.000000000 -0500
|
|
|
80384c |
+++ mysql-5.5.20/mysql-test/README 2012-02-10 17:06:19.531082253 -0500
|
|
|
80384c |
@@ -1,14 +1,26 @@
|
|
|
80384c |
This directory contains a test suite for the MySQL daemon. To run
|
|
|
80384c |
-the currently existing test cases, simply execute ./mysql-test-run in
|
|
|
80384c |
-this directory. It will fire up the newly built mysqld and test it.
|
|
|
80384c |
+the currently existing test cases, execute ./mysql-test-run in
|
|
|
80384c |
+this directory.
|
|
|
80384c |
|
|
|
80384c |
-Note that you do not have to have to do "make install", and you could
|
|
|
80384c |
-actually have a co-existing MySQL installation. The tests will not
|
|
|
80384c |
-conflict with it.
|
|
|
80384c |
-
|
|
|
80384c |
-All tests must pass. If one or more of them fail on your system, please
|
|
|
80384c |
-read the following manual section for instructions on how to report the
|
|
|
80384c |
-problem:
|
|
|
80384c |
+For use in Red Hat distributions, you should run the script as user mysql,
|
|
|
80384c |
+so the best bet is something like
|
|
|
80384c |
+ cd /usr/share/mysql-test
|
|
|
80384c |
+ sudo -u mysql ./mysql-test-run --skip-test-list=platform-specific-tests.list
|
|
|
80384c |
+This will use the installed mysql executables, but will run a private copy
|
|
|
80384c |
+of the server process (using data files within /usr/share/mysql-test),
|
|
|
80384c |
+so you need not start the mysqld service beforehand.
|
|
|
80384c |
+
|
|
|
80384c |
+The "--skip-test-list=platform-specific-tests.list" option excludes tests that are
|
|
|
80384c |
+known to fail on one or more Red-Hat-supported platforms. You can omit it
|
|
|
80384c |
+if you want to check whether such failures occur for you. Documentation
|
|
|
80384c |
+about the reasons for omitting such tests can be found in the file
|
|
|
80384c |
+platform-specific-tests.list.
|
|
|
80384c |
+
|
|
|
80384c |
+To clean up afterwards, remove the created "var" subdirectory, eg
|
|
|
80384c |
+ sudo -u mysql rm -rf /usr/share/mysql-test/var
|
|
|
80384c |
+
|
|
|
80384c |
+If one or more tests fail on your system, please read the following manual
|
|
|
80384c |
+section for instructions on how to report the problem:
|
|
|
80384c |
|
|
|
80384c |
http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
|
|
|
80384c |
|
|
|
80384c |
@@ -25,7 +37,8 @@
|
|
|
80384c |
|
|
|
80384c |
With no test cases named on the command line, mysql-test-run falls back
|
|
|
80384c |
to the normal "non-extern" behavior. The reason for this is that some
|
|
|
80384c |
-tests cannot run with an external server.
|
|
|
80384c |
+tests cannot run with an external server (because they need to control the
|
|
|
80384c |
+options with which the server is started).
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
You can create your own test cases. To create a test case, create a new
|