Blame SOURCES/mysql-install-test.patch

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