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
b96230c8
Commit
b96230c8
authored
Oct 07, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
017a0fd2
3141528e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
15 deletions
+32
-15
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+24
-10
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+8
-5
No files found.
mysql-test/lib/mtr_cases.pm
View file @
b96230c8
...
...
@@ -69,6 +69,10 @@ require "mtr_misc.pl";
my
$do_test_reg
;
my
$skip_test_reg
;
# Related to adding InnoDB plugin combinations
my
$lib_innodb_plugin
;
my
$do_innodb_plugin
;
# If "Quick collect", set to 1 once a test to run has been found.
my
$some_test_found
;
...
...
@@ -103,6 +107,17 @@ sub collect_test_cases ($$) {
$do_test_reg
=
init_pattern
(
$do_test
,
"
--do-test
");
$skip_test_reg
=
init_pattern
(
$skip_test
,
"
--skip-test
");
$lib_innodb_plugin
=
my_find_file
(
$::basedir
,
["
storage/innodb_plugin
",
"
storage/innodb_plugin/.libs
",
"
lib/mysql/plugin
",
"
lib/plugin
"],
["
ha_innodb_plugin.dll
",
"
ha_innodb_plugin.so
",
"
ha_innodb_plugin.sl
"],
NOT_REQUIRED
);
$do_innodb_plugin
=
(
$::mysql_version_id
>=
50100
&&
!
(
IS_WINDOWS
&&
$::opt_embedded_server
)
&&
$lib_innodb_plugin
);
foreach
my
$suite
(
split
("
,
",
$suites
))
{
push
(
@$cases
,
collect_one_suite
(
$suite
,
$opt_cases
));
...
...
@@ -484,19 +499,15 @@ 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
)
if
(
$do_innodb_plugin
)
{
my
@new_cases
;
foreach
my
$test
(
@cases
)
{
next
if
(
$test
->
{'
skip
'}
||
!
$test
->
{'
innodb_test
'});
next
if
(
!
$test
->
{'
innodb_test
'});
# If skipped due to no builtin innodb, we can still run it with plugin
next
if
(
$test
->
{'
skip
'}
&&
$test
->
{
comment
}
ne
"
No innodb support
");
# Exceptions
next
if
(
$test
->
{'
name
'}
eq
'
main.innodb
');
# Failed with wrong errno (fk)
next
if
(
$test
->
{'
name
'}
eq
'
main.index_merge_innodb
');
# Explain diff
...
...
@@ -516,7 +527,7 @@ sub collect_one_suite($)
}
else
{
$new_test
->
{
$key
}
=
$value
;
$new_test
->
{
$key
}
=
$value
unless
(
$key
eq
'
skip
')
;
}
}
my
$plugin_filename
=
basename
(
$lib_innodb_plugin
);
...
...
@@ -975,8 +986,11 @@ sub collect_one_test_case {
{
# innodb is not supported, skip it
$tinfo
->
{'
skip
'}
=
1
;
# This comment is checked for running with innodb plugin (see above),
# please keep that in mind if changing the text.
$tinfo
->
{'
comment
'}
=
"
No innodb support
";
return
$tinfo
;
# But continue processing if we may run it with innodb plugin
return
$tinfo
unless
$do_innodb_plugin
;
}
}
else
...
...
mysql-test/mysql-test-run.pl
View file @
b96230c8
...
...
@@ -322,7 +322,8 @@ sub main {
for
my
$limit
(
2000
,
1500
,
1000
,
500
){
$opt_parallel
--
if
(
$sys_info
->
min_bogomips
()
<
$limit
);
}
$opt_parallel
=
8
if
(
$opt_parallel
>
8
);
my
$max_par
=
$ENV
{
MTR_MAX_PARALLEL
}
||
8
;
$opt_parallel
=
$max_par
if
(
$opt_parallel
>
$max_par
);
$opt_parallel
=
$num_tests
if
(
$opt_parallel
>
$num_tests
);
$opt_parallel
=
1
if
(
IS_WINDOWS
and
$sys_info
->
isvm
());
$opt_parallel
=
1
if
(
$opt_parallel
<
1
);
...
...
@@ -737,6 +738,7 @@ sub run_worker ($) {
}
elsif
(
$line
eq
'
BYE
'){
mtr_report
("
Server said BYE
");
stop_all_servers
(
$opt_shutdown_timeout
);
exit
(
0
);
}
else
{
...
...
@@ -3434,14 +3436,14 @@ sub run_testcase ($) {
my
$check_res
;
if
(
restart_forced_by_test
()
)
{
stop_all_servers
();
stop_all_servers
(
$opt_shutdown_timeout
);
}
elsif
(
$opt_check_testcases
and
$check_res
=
check_testcase
(
$tinfo
,
"
after
"))
{
if
(
$check_res
==
1
)
{
# Test case had sideeffects, not fatal error, just continue
stop_all_servers
();
stop_all_servers
(
$opt_shutdown_timeout
);
mtr_report
("
Resuming tests...
\n
");
}
else
{
...
...
@@ -4082,6 +4084,7 @@ sub mysqld_stop {
mtr_init_args
(
\
$args
);
mtr_add_arg
(
$args
,
"
--no-defaults
");
mtr_add_arg
(
$args
,
"
--character-sets-dir=%s
",
$mysqld
->
value
('
character-sets-dir
'));
mtr_add_arg
(
$args
,
"
--user=%s
",
$opt_user
);
mtr_add_arg
(
$args
,
"
--password=
");
mtr_add_arg
(
$args
,
"
--port=%d
",
$mysqld
->
value
('
port
'));
...
...
@@ -4285,11 +4288,12 @@ sub mysqld_start ($$) {
sub
stop_all_servers
()
{
my
$shutdown_timeout
=
$_
[
0
]
or
0
;
mtr_verbose
("
Stopping all servers...
");
# Kill all started servers
My::SafeProcess::
shutdown
(
0
,
# shutdown timeout 0 => kill
My::SafeProcess::
shutdown
(
$shutdown_timeout
,
started
(
all_servers
()));
# Remove pidfiles
...
...
@@ -5077,7 +5081,6 @@ sub valgrind_arguments {
else
{
mtr_add_arg
(
$args
,
"
--tool=memcheck
");
# From >= 2.1.2 needs this option
mtr_add_arg
(
$args
,
"
--alignment=8
");
mtr_add_arg
(
$args
,
"
--leak-check=yes
");
mtr_add_arg
(
$args
,
"
--num-callers=16
");
mtr_add_arg
(
$args
,
"
--suppressions=%s/valgrind.supp
",
$glob_mysql_test_dir
)
...
...
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