Blame SOURCES/mysql-install-test.patch

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