summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@sun.com>2010-06-14 11:23:49 +0200
committerTor Didriksen <tor.didriksen@sun.com>2010-06-14 11:23:49 +0200
commitf88e6af0bbbba5f7fdf90f6c3401a2c49093a4e9 (patch)
tree47baecc56be788349386eb169f6f596ad14a9b07 /mysql-test/mysql-test-run.pl
parent14182ec9176f2b368270cd82a4a3b31b218f9252 (diff)
downloadmariadb-git-f88e6af0bbbba5f7fdf90f6c3401a2c49093a4e9.tar.gz
Bug #53261 MTR tests archive_plugin and blackhole_plugin fail when compiling with cmake
Let mtr lookup the plugins, rather than hard-coding autotools lib path. mysql-test/include/not_parallel.inc: Add new feature for skipping when running in parallel. mysql-test/mysql-test-run.pl: Use find_plugin to locate plugins. Export opt_parallel in environment. mysql-test/suite/federated/federated_plugin-master.opt: Use plugin dir from mtr. mysql-test/suite/federated/federated_plugin.test: Skip test, disabled. mysql-test/t/archive_plugin-master.opt: Use plugin dir from mtr. mysql-test/t/archive_plugin.test: Skip test if running in parallel. mysql-test/t/blackhole_plugin-master.opt: Use plugin dir from mtr. mysql-test/t/blackhole_plugin.test: Skip test if running in parallel.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index fa2db663e1e..23a92828e2a 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -362,6 +362,7 @@ sub main {
$opt_parallel= 1 if ($opt_parallel < 1);
mtr_report("Using parallel: $opt_parallel");
}
+ $ENV{MTR_PARALLEL} = $opt_parallel;
# Create server socket on any free port
my $server = new IO::Socket::INET
@@ -1826,7 +1827,7 @@ sub find_plugin($$)
mtr_file_exists(vs_config_dirs($location,$plugin_filename),
"$basedir/lib/plugin/".$plugin_filename,
"$basedir/$location/.libs/".$plugin_filename,
- "$basedir/lib/mysql/plugin/".$plugin_filename,
+ "$basedir/lib/mysql/plugin/".$plugin_filename,
);
return $lib_example_plugin;
}
@@ -1944,6 +1945,16 @@ sub environment_setup {
}
# ----------------------------------------------------
+ # Add the paths where mysqld will find archive/blackhole/federated plugins.
+ # ----------------------------------------------------
+ $ENV{'ARCHIVE_PLUGIN_DIR'} =
+ dirname(find_plugin("ha_archive", "storage/archive"));
+ $ENV{'BLACKHOLE_PLUGIN_DIR'} =
+ dirname(find_plugin("ha_blackhole", "storage/blackhole"));
+ $ENV{'FEDERATED_PLUGIN_DIR'} =
+ dirname(find_plugin("ha_federated", "storage/federated"));
+
+ # ----------------------------------------------------
# Add the path where mysqld will find mypluglib.so
# ----------------------------------------------------