praiskup / rpms / mariadb

Forked from rpms/mariadb 5 years ago
Clone
9c7c797
Improve the documentation that will be installed in the mysql-test RPM.
9c7c797
9c7c797
diff -up mariadb-5.5.28a/mysql-test/README.p3 mariadb-5.5.28a/mysql-test/README
9c7c797
--- mariadb-5.5.28a/mysql-test/README.p3	2012-12-17 16:18:20.824636407 +0100
9c7c797
+++ mariadb-5.5.28a/mysql-test/README	2012-12-17 16:21:21.598707120 +0100
9c7c797
@@ -1,15 +1,26 @@
9c7c797
-This directory contains a test suite for the MySQL daemon. To run
9c7c797
-the currently existing test cases, simply execute ./mysql-test-run in
9c7c797
-this directory. It will fire up the newly built mysqld and test it.
9c7c797
-
9c7c797
-Note that you do not have to have to do "make install", and you could
9c7c797
-actually have a co-existing MySQL installation. The tests will not
9c7c797
-conflict with it. To run the test suite in a source directory, you
9c7c797
-must do make first.
9c7c797
-
9c7c797
-All tests must pass. If one or more of them fail on your system, please
9c7c797
-read the following manual section for instructions on how to report the
9c7c797
-problem:
9c7c797
+This directory contains a test suite for the MariaDB daemon. To run
9c7c797
+the currently existing test cases, execute ./mysql-test-run in
9c7c797
+this directory.
9c7c797
+
9c7c797
+For use in Red Hat distributions, you should run the script as user mysql,
9c7c797
+so the best bet is something like
9c7c797
+       cd /usr/share/mysql-test
9c7c797
+       sudo -u mysql ./mysql-test-run --skip-test-list=rh-skipped-tests.list
9c7c797
+This will use the installed mysql executables, but will run a private copy
9c7c797
+of the server process (using data files within /usr/share/mysql-test),
9c7c797
+so you need not start the mysqld service beforehand.
9c7c797
+
9c7c797
+The "--skip-test-list=rh-skipped-tests.list" option excludes tests that are
9c7c797
+known to fail on one or more Red-Hat-supported platforms.  You can omit it
9c7c797
+if you want to check whether such failures occur for you.  Documentation
9c7c797
+about the reasons for omitting such tests can be found in the file
9c7c797
+rh-skipped-tests.list.
9c7c797
+
9c7c797
+To clean up afterwards, remove the created "var" subdirectory, eg
9c7c797
+       sudo -u mysql rm -rf /usr/share/mysql-test/var
9c7c797
+
9c7c797
+If one or more tests fail on your system, please read the following manual
9c7c797
+section for instructions on how to report the problem:
9c7c797
 
9c7c797
 http://kb.askmonty.org/v/reporting-bugs
9c7c797
 
9c7c797
@@ -26,7 +37,8 @@ other relevant options.
9c7c797
 
9c7c797
 With no test cases named on the command line, mysql-test-run falls back
9c7c797
 to the normal "non-extern" behavior. The reason for this is that some
9c7c797
-tests cannot run with an external server.
9c7c797
+tests cannot run with an external server (because they need to control the
9c7c797
+options with which the server is started).
9c7c797
 
9c7c797
 You can create your own test cases. To create a test case, create a new
9c7c797
 file in the t subdirectory using a text editor. The file should have a .test