Blame SOURCES/mysql-install-test.patch

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