1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix running test suite from installed package.

Some files are in different locations in this case.
This commit is contained in:
unknown
2009-11-05 14:40:01 +01:00
parent 0673379006
commit 3dcbe769fb
2 changed files with 10 additions and 0 deletions

View File

@ -249,6 +249,10 @@ sub collect_one_suite($)
$suitedir= my_find_dir($::basedir, $suitedir= my_find_dir($::basedir,
["mysql-test/suite", ["mysql-test/suite",
"mysql-test", "mysql-test",
"share/mysql-test/suite",
"share/mysql-test",
"share/mysql/mysql-test/suite",
"share/mysql/mysql-test",
# Look in storage engine specific suite dirs # Look in storage engine specific suite dirs
"storage/*/mysql-test-suites" "storage/*/mysql-test-suites"
], ],

View File

@ -1001,6 +1001,12 @@ sub command_line_setup {
{ {
$basedir= dirname($basedir); $basedir= dirname($basedir);
} }
# For .deb, it's like RPM, but installed in /usr/share/mysql/mysql-test.
# So move up one more directory level yet.
if ( ! $source_dist and ! -d "$basedir/bin" )
{
$basedir= dirname($basedir);
}
# Look for the client binaries directory # Look for the client binaries directory
if ($path_client_bindir) if ($path_client_bindir)