diff options
author | Tor Didriksen <tor.didriksen@sun.com> | 2010-06-14 11:23:49 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@sun.com> | 2010-06-14 11:23:49 +0200 |
commit | 407da948936fa0923d8a3885fda7d8ffa0013f7f (patch) | |
tree | 47baecc56be788349386eb169f6f596ad14a9b07 | |
parent | b985f884607a6e06a84bf7c5ea5aa314be41a496 (diff) | |
download | mariadb-git-407da948936fa0923d8a3885fda7d8ffa0013f7f.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.
-rw-r--r-- | mysql-test/include/not_parallel.inc | 3 | ||||
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 13 | ||||
-rw-r--r-- | mysql-test/suite/federated/federated_plugin-master.opt | 3 | ||||
-rw-r--r-- | mysql-test/suite/federated/federated_plugin.test | 2 | ||||
-rw-r--r-- | mysql-test/t/archive_plugin-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/archive_plugin.test | 4 | ||||
-rw-r--r-- | mysql-test/t/blackhole_plugin-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/blackhole_plugin.test | 4 |
8 files changed, 28 insertions, 5 deletions
diff --git a/mysql-test/include/not_parallel.inc b/mysql-test/include/not_parallel.inc new file mode 100644 index 00000000000..39432c59813 --- /dev/null +++ b/mysql-test/include/not_parallel.inc @@ -0,0 +1,3 @@ +if (`SELECT '$MTR_PARALLEL' > 1`) { + --skip test requires --parallel=1 +} 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 # ---------------------------------------------------- diff --git a/mysql-test/suite/federated/federated_plugin-master.opt b/mysql-test/suite/federated/federated_plugin-master.opt index ac2e9458e5f..fa9ad063fe1 100644 --- a/mysql-test/suite/federated/federated_plugin-master.opt +++ b/mysql-test/suite/federated/federated_plugin-master.opt @@ -1,2 +1 @@ ---plugin_dir=../storage/federated/.libs - +--plugin_dir=$FEDERATED_PLUGIN_DIR diff --git a/mysql-test/suite/federated/federated_plugin.test b/mysql-test/suite/federated/federated_plugin.test index 81421e226b1..b9056f63352 100644 --- a/mysql-test/suite/federated/federated_plugin.test +++ b/mysql-test/suite/federated/federated_plugin.test @@ -1,6 +1,8 @@ --source include/not_windows.inc --source include/have_federated_plugin.inc +--skip federated plugin is disabled + CREATE TABLE t1(a int) ENGINE=FEDERATED; DROP TABLE t1; diff --git a/mysql-test/t/archive_plugin-master.opt b/mysql-test/t/archive_plugin-master.opt index 28e7a6a2831..36b21a74922 100644 --- a/mysql-test/t/archive_plugin-master.opt +++ b/mysql-test/t/archive_plugin-master.opt @@ -1 +1 @@ ---plugin_dir=../storage/archive/.libs +--plugin_dir=$ARCHIVE_PLUGIN_DIR diff --git a/mysql-test/t/archive_plugin.test b/mysql-test/t/archive_plugin.test index 18b7cddc7d3..567a0a58ce7 100644 --- a/mysql-test/t/archive_plugin.test +++ b/mysql-test/t/archive_plugin.test @@ -1,6 +1,10 @@ --source include/not_windows.inc --source include/have_archive_plugin.inc +# When running in parallel we get +# Warning 1620 Plugin is busy and will be uninstalled on shutdown +--source include/not_parallel.inc + CREATE TABLE t1(a int) ENGINE=ARCHIVE; DROP TABLE t1; diff --git a/mysql-test/t/blackhole_plugin-master.opt b/mysql-test/t/blackhole_plugin-master.opt index dff15c6f136..e78cd2b1662 100644 --- a/mysql-test/t/blackhole_plugin-master.opt +++ b/mysql-test/t/blackhole_plugin-master.opt @@ -1 +1 @@ ---plugin_dir=../storage/blackhole/.libs +--plugin_dir=$BLACKHOLE_PLUGIN_DIR diff --git a/mysql-test/t/blackhole_plugin.test b/mysql-test/t/blackhole_plugin.test index 5c712233dc7..1de5b2d0499 100644 --- a/mysql-test/t/blackhole_plugin.test +++ b/mysql-test/t/blackhole_plugin.test @@ -1,6 +1,10 @@ --source include/not_windows.inc --source include/have_blackhole_plugin.inc +# When running in parallel we get +# Warning 1620 Plugin is busy and will be uninstalled on shutdown +--source include/not_parallel.inc + CREATE TABLE t1(a int) ENGINE=BLACKHOLE; DROP TABLE t1; |