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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5ef55e2c
Commit
5ef55e2c
authored
May 03, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added galera, wsrep suites to the default mtr suite list.
parent
68a0f28d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+25
-11
No files found.
mysql-test/mysql-test-run.pl
View file @
5ef55e2c
...
...
@@ -186,6 +186,8 @@ my @DEFAULT_SUITES= qw(
sys_vars-
unit-
vcol-
galera-
wsrep-
)
;
my
$opt_suites
;
...
...
@@ -415,6 +417,7 @@ sub main {
check_ndbcluster_support
();
check_ssl_support
();
check_debug_support
();
check_wsrep_support
();
mtr_report
("
Collecting tests...
");
my
$tests
=
collect_test_cases
(
$opt_reorder
,
$opt_suites
,
\
@opt_cases
,
\
@opt_skip_test_list
);
...
...
@@ -2396,19 +2399,19 @@ sub environment_setup {
# ----------------------------------------------------
# Setup env for wsrep
# ----------------------------------------------------
if
(
defined
$ENV
{'
WSREP_PROVIDER
'}
)
{
# Nothing needs to be done! WSREP_PROVIDER env is already set and will be
# used.
}
else
{
my
$file_wsrep_provider
=
mtr_file_exists
("
/usr/lib/galera/libgalera_smm.so
",
"
/usr/lib64/galera/libgalera_smm.so
");
$ENV
{'
WSREP_PROVIDER
'}
=
$file_wsrep_provider
;
if
(
have_wsrep
())
{
if
(
defined
$ENV
{'
WSREP_PROVIDER
'}
)
{
# Nothing needs to be done! WSREP_PROVIDER env is already set and will be
# used.
}
else
{
my
$file_wsrep_provider
=
mtr_file_exists
("
/usr/lib/galera/libgalera_smm.so
",
"
/usr/lib64/galera/libgalera_smm.so
");
$ENV
{'
WSREP_PROVIDER
'}
=
$file_wsrep_provider
;
}
mtr_verbose
("
WSREP_PROVIDER set to
$ENV
{'WSREP_PROVIDER'}
");
}
mtr_verbose
("
WSREP_PROVIDER set to
$ENV
{'WSREP_PROVIDER'}
");
# ----------------------------------------------------
# mysql clients
# ----------------------------------------------------
...
...
@@ -3172,6 +3175,17 @@ sub ndbcluster_start ($) {
return
0
;
}
sub
have_wsrep
()
{
my
$wsrep_on
=
$mysqld_variables
{'
wsrep-on
'};
return
defined
$wsrep_on
}
sub
check_wsrep_support
()
{
if
(
have_wsrep
())
{
mtr_report
("
- binaries built with wsrep patch
");
}
}
sub
mysql_server_start
($)
{
my
(
$mysqld
,
$tinfo
)
=
@_
;
...
...
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