From b24232dd15a8d736afe4c03159b070c22a00e655 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 9 May 2010 11:05:53 +0200 Subject: Import mysql-5.1.46-1 --- mysql-install-test.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 mysql-install-test.patch (limited to 'mysql-install-test.patch') diff --git a/mysql-install-test.patch b/mysql-install-test.patch new file mode 100644 index 0000000..c69117a --- /dev/null +++ b/mysql-install-test.patch @@ -0,0 +1,50 @@ +mysql's idea of a suitable place to install the regression tests is +/usr/mysql-test. To relocate this to a reasonably FHS-compliant place +like /usr/share/mysql-test, we have to hack up the paths in mtr_cases.pm. +This patch also improves the documentation a tad. + + +diff -Naur mysql-5.1.43.orig/mysql-test/README mysql-5.1.43/mysql-test/README +--- mysql-5.1.43.orig/mysql-test/README 2010-01-15 12:14:43.000000000 -0500 ++++ mysql-5.1.43/mysql-test/README 2010-02-13 21:18:06.000000000 -0500 +@@ -6,6 +6,16 @@ + actually have a co-existing MySQL installation. The tests will not + conflict with it. + ++For use in Red Hat distributions, you should run the script as user mysql, ++so the best bet is something like ++ cd /usr/share/mysql-test ++ sudo -u mysql ./mysql-test-run ++This will use the installed mysql executables, but will run a private copy ++of the server process (using data files within /usr/share/mysql-test), ++so you need not start the mysqld service beforehand. ++To clean up afterwards, remove the created "var" subdirectory, eg ++ sudo -u mysql rm -rf /usr/share/mysql-test/var ++ + All tests must pass. If one or more of them fail on your system, please + read the following manual section for instructions on how to report the + problem: +@@ -25,7 +35,8 @@ + + With no test cases named on the command line, mysql-test-run falls back + to the normal "non-extern" behavior. The reason for this is that some +-tests cannot run with an external server. ++tests cannot run with an external server (because they need to control the ++options with which the server is started). + + + You can create your own test cases. To create a test case, create a new +diff -Naur mysql-5.1.43.orig/mysql-test/lib/mtr_cases.pm mysql-5.1.43/mysql-test/lib/mtr_cases.pm +--- mysql-5.1.43.orig/mysql-test/lib/mtr_cases.pm 2010-01-15 12:14:49.000000000 -0500 ++++ mysql-5.1.43/mysql-test/lib/mtr_cases.pm 2010-02-13 21:17:30.000000000 -0500 +@@ -259,7 +259,9 @@ + else + { + $suitedir= my_find_dir($::basedir, +- ["mysql-test/suite", ++ ["share/mysql-test/suite", ++ "share/mysql-test", ++ "mysql-test/suite", + "mysql-test", + # Look in storage engine specific suite dirs + "storage/*/mysql-test-suites" -- cgit