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