Bug #58415 mtr cannot find libmysqld.dll in new 5.5 packages
Submitted: 23 Nov 2010 12:59 Modified: 17 Dec 2010 3:39
Reporter: Jonathan Perkin Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.5+ OS:Windows
Assigned to: Bjørn Munch CPU Architecture:Any

[23 Nov 2010 12:59] Jonathan Perkin
Description:
MTR only supports testing the embedded server on Windows from inside a built source tree, as it only looks in the RelWithDebInfo etc dirs.

For 5.5 builds, we have separated out build and test phases, and so we need to support running against a binary package.

It's not worth fixing for 5.1 binary packages.

How to repeat:
On windows, run:

  perl mysql-test-run.pl --embedded-server

from inside an unpacked binary package, it won't be able to find any directories.

Suggested fix:
This works for me:

=== modified file 'mysql-test/mysql-test-run.pl'
--- mysql-test/mysql-test-run.pl	2010-10-12 10:07:49 +0000
+++ mysql-test/mysql-test-run.pl	2010-11-23 12:53:44 +0000
@@ -1316,7 +1316,7 @@
       # Add the location for libmysqld.dll to the path.
       my $separator= ";";
       my $lib_mysqld=
-        mtr_path_exists(vs_config_dirs('libmysqld',''));
+        mtr_path_exists("$bindir/lib", vs_config_dirs('libmysqld',''));
       if ( IS_CYGWIN )
       {
 	$lib_mysqld= posix_path($lib_mysqld);
[23 Nov 2010 13:26] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/124737

3119 Bjorn Munch	2010-11-23
      Bug #58415 mtr cannot find libmysqld.dll in new 5.5 packages
      Done as suggested
      Also tested from src build directory
[23 Nov 2010 20:34] Paul DuBois
Changes to test suite. No changelog entry needed.
[16 Dec 2010 21:47] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101216181820-7afubgk2fmuv9qsb) (version source revid:alexander.nozdrin@oracle.com-20101216173826-ze3y5h450sksotrh) (merge vers: 5.6.1) (pib:23)
[16 Dec 2010 22:27] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (version source revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (merge vers: 5.5.9) (pib:24)