Skip to content

Commit

Permalink
fix the plugin suite to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Sep 12, 2016
1 parent 1fc49d3 commit 365f199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
39 changes: 5 additions & 34 deletions mysql-test/mysql-test-run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2144,35 +2144,6 @@ ()
return defined $maria_var;
}

#
# Set environment to be used by childs of this process for
# things that are constant during the whole lifetime of mysql-test-run
#

sub find_plugin($$)
{
my ($plugin, $location) = @_;
my $plugin_filename;

if (IS_WINDOWS)
{
$plugin_filename = $plugin.".dll";
}
else
{
$plugin_filename = $plugin.".so";
}

my $lib_plugin=
mtr_file_exists(vs_config_dirs($location,$plugin_filename),
"$basedir/lib/plugin/".$plugin_filename,
"$basedir/lib64/plugin/".$plugin_filename,
"$basedir/$location/.libs/".$plugin_filename,
"$basedir/lib/mysql/plugin/".$plugin_filename,
"$basedir/lib64/mysql/plugin/".$plugin_filename,
);
return $lib_plugin;
}

sub environment_setup {

Expand Down Expand Up @@ -2594,6 +2565,7 @@ ()
{
for (<$bindir/storage/*$opt_vs_config/*.dll>,
<$bindir/plugin/*$opt_vs_config/*.dll>,
<$bindir/libmariadb/plugins/*$opt_vs_config/*.dll>,
<$bindir/sql$opt_vs_config/*.dll>)
{
my $pname=basename($_);
Expand All @@ -2611,12 +2583,9 @@ ()
unlink "$plugindir/symlink_test";
}

for (<../storage/*/.libs/*.so>,
<../plugin/*/.libs/*.so>,
<../plugin/*/*/.libs/*.so>,
<../sql/.libs/*.so>,
<$bindir/storage/*/*.so>,
for (<$bindir/storage/*/*.so>,
<$bindir/plugin/*/*.so>,
<$bindir/libmariadb/plugins/*/*.so>,
<$bindir/sql/*.so>)
{
my $pname=basename($_);
Expand All @@ -2638,6 +2607,8 @@ ()
# hm, what paths work for debs and for rpms ?
for (<$bindir/lib64/mysql/plugin/*.so>,
<$bindir/lib/mysql/plugin/*.so>,
<$bindir/lib64/mariadb/plugin/*.so>,
<$bindir/lib/mariadb/plugin/*.so>,
<$bindir/lib/plugin/*.so>, # bintar
<$bindir/lib/plugin/*.dll>)
{
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/plugins/r/show_all_plugins.result
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ three_attempts NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
two_questions NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
show status like '%libraries%';
Variable_name Value
Opened_plugin_libraries 7
Opened_plugin_libraries 8
show plugins soname where library = 'ha_example.so';
Name Status Type Library License
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
Expand Down

0 comments on commit 365f199

Please sign in to comment.