diff options
author | Guilhem Bichot <guilhem@mysql.com> | 2009-08-05 12:07:41 +0200 |
---|---|---|
committer | Guilhem Bichot <guilhem@mysql.com> | 2009-08-05 12:07:41 +0200 |
commit | 10080d547e012aac4feb566fd7b51bbb485a717b (patch) | |
tree | 1999ea4dad1da7b6e45b45e80311ccaf86771abb | |
parent | 8c54ccc5dfa0c59cc660d234512bb334abd19071 (diff) | |
download | mariadb-git-10080d547e012aac4feb566fd7b51bbb485a717b.tar.gz |
InnoDB plugin is built-in: remove test code which depended on the plugin property
mysql-test/lib/mtr_cases.pm:
there is only one InnoDB in this tree, no need to run an InnoDB test twice
mysql-test/suite/innodb/include/have_innodb_plugin.inc:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb-analyze.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb-timeout.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb-use-sys-malloc.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb-zip.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb_bug36169.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb_bug36172.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb_file_format.test:
plugin is now the builtin
mysql-test/suite/innodb/t/innodb_information_schema.test:
plugin is now the builtin
storage/innodb_plugin/plug.in:
build libinnobase.a, to have it built-in
-rw-r--r-- | mysql-test/lib/mtr_cases.pm | 59 | ||||
-rw-r--r-- | mysql-test/suite/innodb/include/have_innodb_plugin.inc | 4 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-analyze.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-timeout.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-use-sys-malloc.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-zip.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_bug36169.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_bug36172.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_file_format.test | 1 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_information_schema.test | 1 | ||||
-rw-r--r-- | storage/innodb_plugin/plug.in | 1 |
11 files changed, 1 insertions, 71 deletions
diff --git a/mysql-test/lib/mtr_cases.pm b/mysql-test/lib/mtr_cases.pm index c9c0f1796e5..1a7ecee40d6 100644 --- a/mysql-test/lib/mtr_cases.pm +++ b/mysql-test/lib/mtr_cases.pm @@ -476,65 +476,6 @@ sub collect_one_suite($) } } - # ---------------------------------------------------------------------- - # Testing InnoDB plugin. - # ---------------------------------------------------------------------- - my $lib_innodb_plugin= - mtr_file_exists(::vs_config_dirs('storage/innodb_plugin', 'ha_innodb_plugin.dll'), - "$::basedir/storage/innodb_plugin/.libs/ha_innodb_plugin.so", - "$::basedir/lib/mysql/plugin/ha_innodb_plugin.so", - "$::basedir/lib/mysql/plugin/ha_innodb_plugin.dll"); - if ($::mysql_version_id >= 50100 && !(IS_WINDOWS && $::opt_embedded_server) && - $lib_innodb_plugin) - { - my @new_cases; - - foreach my $test (@cases) - { - next if ($test->{'skip'} || !$test->{'innodb_test'}); - # Exceptions - next if ($test->{'name'} eq 'main.innodb'); # Failed with wrong errno (fk) - # innodb_file_per_table is rw with innodb_plugin - next if ($test->{'name'} eq 'sys_vars.innodb_file_per_table_basic'); - # innodb_lock_wait_timeout is rw with innodb_plugin - next if ($test->{'name'} eq 'sys_vars.innodb_lock_wait_timeout_basic'); - # Diff around innodb_thread_concurrency variable - next if ($test->{'name'} eq 'sys_vars.innodb_thread_concurrency_basic'); - # Copy test options - my $new_test= My::Test->new(); - while (my ($key, $value) = each(%$test)) - { - if (ref $value eq "ARRAY") - { - push(@{$new_test->{$key}}, @$value); - } - else - { - $new_test->{$key}= $value; - } - } - my $plugin_filename= basename($lib_innodb_plugin); - push(@{$new_test->{master_opt}}, '--ignore-builtin-innodb'); - push(@{$new_test->{master_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin)); - push(@{$new_test->{master_opt}}, "--plugin_load=innodb=$plugin_filename;innodb_locks=$plugin_filename"); - push(@{$new_test->{slave_opt}}, '--ignore-builtin-innodb'); - push(@{$new_test->{slave_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin)); - push(@{$new_test->{slave_opt}}, "--plugin_load=innodb=$plugin_filename;innodb_locks=$plugin_filename"); - if ($new_test->{combination}) - { - $new_test->{combination}.= ' + InnoDB plugin'; - } - else - { - $new_test->{combination}= 'InnoDB plugin'; - } - push(@new_cases, $new_test); - } - push(@cases, @new_cases); - } - # ---------------------------------------------------------------------- - # End of testing InnoDB plugin. - # ---------------------------------------------------------------------- optimize_cases(\@cases); #print_testcases(@cases); diff --git a/mysql-test/suite/innodb/include/have_innodb_plugin.inc b/mysql-test/suite/innodb/include/have_innodb_plugin.inc deleted file mode 100644 index 24af3274ada..00000000000 --- a/mysql-test/suite/innodb/include/have_innodb_plugin.inc +++ /dev/null @@ -1,4 +0,0 @@ -disable_query_log; ---require r/true.require -select (PLUGIN_LIBRARY LIKE 'ha_innodb_plugin%') as `TRUE` from information_schema.plugins where PLUGIN_NAME='InnoDB'; -enable_query_log; diff --git a/mysql-test/suite/innodb/t/innodb-analyze.test b/mysql-test/suite/innodb/t/innodb-analyze.test index 870e6434797..32eef7e742c 100644 --- a/mysql-test/suite/innodb/t/innodb-analyze.test +++ b/mysql-test/suite/innodb/t/innodb-analyze.test @@ -4,7 +4,6 @@ # -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc # we care only that the following SQL commands do not produce errors # and do not crash the server diff --git a/mysql-test/suite/innodb/t/innodb-timeout.test b/mysql-test/suite/innodb/t/innodb-timeout.test index 1ee1ad63180..f23fe3cff2d 100644 --- a/mysql-test/suite/innodb/t/innodb-timeout.test +++ b/mysql-test/suite/innodb/t/innodb-timeout.test @@ -1,5 +1,4 @@ -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc let $timeout=`select @@innodb_lock_wait_timeout`; set global innodb_lock_wait_timeout=42; diff --git a/mysql-test/suite/innodb/t/innodb-use-sys-malloc.test b/mysql-test/suite/innodb/t/innodb-use-sys-malloc.test index 4df3ca9d27c..325dd19d086 100644 --- a/mysql-test/suite/innodb/t/innodb-use-sys-malloc.test +++ b/mysql-test/suite/innodb/t/innodb-use-sys-malloc.test @@ -1,5 +1,4 @@ --source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc #display current value of innodb_use_sys_malloc SELECT @@GLOBAL.innodb_use_sys_malloc; diff --git a/mysql-test/suite/innodb/t/innodb-zip.test b/mysql-test/suite/innodb/t/innodb-zip.test index 3ee278b7c5a..ddc39d44487 100644 --- a/mysql-test/suite/innodb/t/innodb-zip.test +++ b/mysql-test/suite/innodb/t/innodb-zip.test @@ -1,5 +1,4 @@ -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc let $per_table=`select @@innodb_file_per_table`; let $format=`select @@innodb_file_format`; diff --git a/mysql-test/suite/innodb/t/innodb_bug36169.test b/mysql-test/suite/innodb/t/innodb_bug36169.test index da852b816f4..f3869a31513 100644 --- a/mysql-test/suite/innodb/t/innodb_bug36169.test +++ b/mysql-test/suite/innodb/t/innodb_bug36169.test @@ -4,7 +4,6 @@ # -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc SET GLOBAL innodb_file_format='Barracuda'; SET GLOBAL innodb_file_per_table=ON; diff --git a/mysql-test/suite/innodb/t/innodb_bug36172.test b/mysql-test/suite/innodb/t/innodb_bug36172.test index 9e1308d5fc3..9d437b7d8cd 100644 --- a/mysql-test/suite/innodb/t/innodb_bug36172.test +++ b/mysql-test/suite/innodb/t/innodb_bug36172.test @@ -4,7 +4,6 @@ -- source include/not_embedded.inc -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc SET storage_engine=InnoDB; diff --git a/mysql-test/suite/innodb/t/innodb_file_format.test b/mysql-test/suite/innodb/t/innodb_file_format.test index 293e87a413e..17f590dbbce 100644 --- a/mysql-test/suite/innodb/t/innodb_file_format.test +++ b/mysql-test/suite/innodb/t/innodb_file_format.test @@ -1,5 +1,4 @@ -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc let $format=`select @@innodb_file_format`; let $innodb_file_format_check_orig=`select @@innodb_file_format_check`; diff --git a/mysql-test/suite/innodb/t/innodb_information_schema.test b/mysql-test/suite/innodb/t/innodb_information_schema.test index df65139448c..eaed653854a 100644 --- a/mysql-test/suite/innodb/t/innodb_information_schema.test +++ b/mysql-test/suite/innodb/t/innodb_information_schema.test @@ -4,7 +4,6 @@ # -- source include/have_innodb.inc --- source suite/innodb/include/have_innodb_plugin.inc -- disable_query_log -- disable_result_log diff --git a/storage/innodb_plugin/plug.in b/storage/innodb_plugin/plug.in index 6daa6c5daed..52ad86179a4 100644 --- a/storage/innodb_plugin/plug.in +++ b/storage/innodb_plugin/plug.in @@ -17,6 +17,7 @@ MYSQL_STORAGE_ENGINE(innodb_plugin,, [InnoDB Storage Engine], [Transactional Tables using InnoDB], [max,max-no-ndb]) MYSQL_PLUGIN_DIRECTORY(innodb_plugin, [storage/innodb_plugin]) +MYSQL_PLUGIN_STATIC(innodb_plugin, [libinnobase.a]) MYSQL_PLUGIN_DYNAMIC(innodb_plugin, [ha_innodb_plugin.la]) MYSQL_PLUGIN_ACTIONS(innodb_plugin, [ AC_CHECK_HEADERS(sched.h) |