Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d805c121
Commit
d805c121
authored
Jun 24, 2009
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This patch implements testing InnoDB plugin milestone.
parent
88b2fe2f
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
74 additions
and
9 deletions
+74
-9
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+60
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
mysql-test/suite/innodb/include/have_innodb_plugin.inc
mysql-test/suite/innodb/include/have_innodb_plugin.inc
+4
-0
mysql-test/suite/innodb/my.cnf
mysql-test/suite/innodb/my.cnf
+0
-6
mysql-test/suite/innodb/t/innodb-analyze.test
mysql-test/suite/innodb/t/innodb-analyze.test
+1
-0
mysql-test/suite/innodb/t/innodb-timeout.test
mysql-test/suite/innodb/t/innodb-timeout.test
+1
-0
mysql-test/suite/innodb/t/innodb-use-sys-malloc-master.opt
mysql-test/suite/innodb/t/innodb-use-sys-malloc-master.opt
+2
-2
mysql-test/suite/innodb/t/innodb-use-sys-malloc.test
mysql-test/suite/innodb/t/innodb-use-sys-malloc.test
+1
-0
mysql-test/suite/innodb/t/innodb-zip.test
mysql-test/suite/innodb/t/innodb-zip.test
+1
-0
mysql-test/suite/innodb/t/innodb_bug36169.test
mysql-test/suite/innodb/t/innodb_bug36169.test
+1
-0
mysql-test/suite/innodb/t/innodb_bug36172.test
mysql-test/suite/innodb/t/innodb_bug36172.test
+1
-0
mysql-test/suite/innodb/t/innodb_information_schema.test
mysql-test/suite/innodb/t/innodb_information_schema.test
+1
-0
No files found.
mysql-test/lib/mtr_cases.pm
View file @
d805c121
...
...
@@ -475,6 +475,66 @@ sub collect_one_suite($)
#print_testcases(@cases);
}
}
# ----------------------------------------------------------------------
# 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
");
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)
next
if
(
$test
->
{'
name
'}
eq
'
main.innodb_mysql
');
# Diff in show (fk)
next
if
(
$test
->
{'
name
'}
eq
'
main.index_merge_innodb
');
# Explain diff
# 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);
...
...
mysql-test/mysql-test-run.pl
View file @
d805c121
...
...
@@ -126,7 +126,7 @@ my $path_config_file; # The generated config file, var/my.cnf
# executables will be used by the test suite.
our
$opt_vs_config
=
$ENV
{'
MTR_VS_CONFIG
'};
my
$DEFAULT_SUITES
=
"
main,binlog,federated,rpl,rpl_ndb,ndb
";
my
$DEFAULT_SUITES
=
"
main,binlog,federated,rpl,rpl_ndb,ndb
,innodb
";
my
$opt_suites
;
our
$opt_verbose
=
0
;
# Verbose output, enable with --verbose
...
...
mysql-test/suite/innodb/include/have_innodb_plugin.inc
0 → 100644
View file @
d805c121
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
;
mysql-test/suite/innodb/my.cnf
deleted
100644 → 0
View file @
88b2fe2f
!include include/default_my.cnf
[mysqld]
ignore-builtin-innodb
plugin-dir=../storage/innodb_plugin/.libs/
plugin_load=innodb=ha_innodb_plugin.so:innodb_locks=ha_innodb_plugin.so
mysql-test/suite/innodb/t/innodb-analyze.test
View file @
d805c121
...
...
@@ -4,6 +4,7 @@
#
--
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
...
...
mysql-test/suite/innodb/t/innodb-timeout.test
View file @
d805c121
--
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
;
...
...
mysql-test/suite/innodb/t/innodb-use-sys-malloc-master.opt
View file @
d805c121
--innodb-use-sys-malloc=true
--innodb-use-sys-malloc=true
--
loose-
innodb-use-sys-malloc=true
--
loose-
innodb-use-sys-malloc=true
mysql-test/suite/innodb/t/innodb-use-sys-malloc.test
View file @
d805c121
--
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
;
...
...
mysql-test/suite/innodb/t/innodb-zip.test
View file @
d805c121
--
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`
;
...
...
mysql-test/suite/innodb/t/innodb_bug36169.test
View file @
d805c121
...
...
@@ -4,6 +4,7 @@
#
--
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
;
...
...
mysql-test/suite/innodb/t/innodb_bug36172.test
View file @
d805c121
...
...
@@ -4,6 +4,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
suite
/
innodb
/
include
/
have_innodb_plugin
.
inc
SET
storage_engine
=
InnoDB
;
...
...
mysql-test/suite/innodb/t/innodb_information_schema.test
View file @
d805c121
...
...
@@ -4,6 +4,7 @@
#
--
source
include
/
have_innodb
.
inc
--
source
suite
/
innodb
/
include
/
have_innodb_plugin
.
inc
--
disable_query_log
--
disable_result_log
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment