Bug #25447 mysql-test-run.sh do not run at compilation time because it can not start mysqld
Submitted: 6 Jan 2007 17:00 Modified: 9 Jan 2007 11:50
Reporter: [ name withheld ] Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.0.30 OS:Linux (Linux (centos4.4))
Assigned to: CPU Architecture:Any

[6 Jan 2007 17:00] [ name withheld ]
Description:
When creating the rpm package for mysql-5.0.30 I run 'make test' but it die after 400 second because the pid file could not be created (timeout).
Then I run the mysql-test-run script by hand at the source and realice that the problem was the inability to find the mysqld command so the server process couldn't start :-(
the variable BASEDIR was not evaluated rightly

also there is a problem with the view test, it looks like the result is not 2007 ready :-) so the age of the peoples in the testing table are just different :-)

How to repeat:
just compile the mysql source and before instaling it, run the  mysql-test-run script from the source or just run 'make test' :-)

Suggested fix:
patch the script with this patch

cut here ---
--- mysql-test-run.sh.ori       2007-01-05 21:34:26.000000000 -0500
+++ mysql-test-run.sh   2007-01-05 21:35:13.000000000 -0500
@@ -192,7 +192,7 @@
    # so the existence of "/usr/share/bin/" would make this test fail.
    BASEDIR=`pwd`
 else
-   cd ..
+   [ x$SOURCE_DIST = x1 ] || cd ..
    BASEDIR=`pwd`
 fi

--- end cut
[9 Jan 2007 11:50] Sveta Smirnova
Thank you for the report.

Since 5.0.32 version script mysql-test-run.sh has been replaced with script mysql-test-run-shell.sh which does not contain indicated strings.

Tests run fine if invoke them form source directory. Tested with last development sources.