Commit 75263427 authored by unknown's avatar unknown

README:

  Revise mysql-test README.


mysql-test/README:
  Revise mysql-test README.
parent a73b7dc2
This directory contains a test suite for mysql daemon. To run This directory contains a test suite for mysql daemon. To run
the currently existing test cases, simply execute ./mysql-test-run in the currently existing test cases, simply execute ./mysql-test-run in
this directory. It will fire up the newly built mysqld and test it. this directory. It will fire up the newly built mysqld and test it.
If you want to run a test with a running MySQL server use the --extern
option to mysql-test-run. Please note that in this mode the test suite
expects user to specify test names to run. Otherwise it falls back to the
normal "non-extern" behaviour. The reason is that some tests
could not run with external server. Here is the sample command
to test "alias" and "analyze" tests on external server:
mysql-test-run --extern alias analyze
To match your setup you might also need to provide --socket, --user and
other relevant options.
Note that you do not have to have to do make install, and you could Note that you do not have to have to do make install, and you could
actually have a co-existing MySQL installation - the tests will not actually have a co-existing MySQL installation - the tests will not
conflict with it. conflict with it.
...@@ -8,13 +21,12 @@ conflict with it. ...@@ -8,13 +21,12 @@ conflict with it.
All tests must pass. If one or more of them fail on your system, please All tests must pass. If one or more of them fail on your system, please
read the following manual section of how to report the problem: read the following manual section of how to report the problem:
http://dev.mysql.com/doc/mysql/en/MySQL_test_suite.html http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
You can create your own test cases. To create a test case: You can create your own test cases. To create a test case:
cd t xemacs t/test_case_name.test
vi test_case_name.test
in the file, put a set of SQL commands that will create some tables, in the file, put a set of SQL commands that will create some tables,
load test data, run some queries to manipulate it. load test data, run some queries to manipulate it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment