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
1ebc055f
Commit
1ebc055f
authored
Jun 05, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified mtr script to skip inclusion of 'galera' test suites
if galera library is not specified or found.
parent
26fa9e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
9 deletions
+33
-9
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+33
-9
No files found.
mysql-test/mysql-test-run.pl
View file @
1ebc055f
...
...
@@ -135,6 +135,7 @@ my $opt_start;
my
$opt_start_dirty
;
my
$opt_start_exit
;
my
$start_only
;
my
$file_wsrep_provider
;
END
{
if
(
defined
$opt_tmpdir_pid
and
$opt_tmpdir_pid
==
$$
)
...
...
@@ -186,8 +187,6 @@ my @DEFAULT_SUITES= qw(
sys_vars-
unit-
vcol-
galera-
wsrep-
)
;
my
$opt_suites
;
...
...
@@ -2401,17 +2400,19 @@ sub environment_setup {
# ----------------------------------------------------
if
(
have_wsrep
())
{
if
(
defined
$ENV
{'
WSREP_PROVIDER
'}
)
{
# Nothing needs to be done! WSREP_PROVIDER env is already set
and will be
# used.
# Nothing needs to be done! WSREP_PROVIDER env is already set
& checked;
#
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'}
");
if
(
$ENV
{'
WSREP_PROVIDER
'}
ne
"")
{
mtr_verbose
("
WSREP_PROVIDER set to
$ENV
{'WSREP_PROVIDER'}
");
}
else
{
mtr_verbose
("
WSREP_PROVIDER isn't available
");
}
}
# ----------------------------------------------------
# mysql clients
# ----------------------------------------------------
...
...
@@ -3180,10 +3181,33 @@ sub have_wsrep() {
return
defined
$wsrep_on
}
sub
check_wsrep_provider_env
{
if
(
defined
$ENV
{'
WSREP_PROVIDER
'})
{
if
(
mtr_file_exists
(
$ENV
{'
WSREP_PROVIDER
'})
eq
"")
{
mtr_error
("
WSREP_PROVIDER env set to an invalid path
");
return
0
;
# error
}
# Ok, WSREP_PROVIDER set to a valid path.
return
1
;
}
# Ok, WSREP_PROVIDER not defined.
return
2
;
}
sub
check_wsrep_support
()
{
if
(
have_wsrep
())
{
mtr_report
("
- binaries built with wsrep patch
");
$file_wsrep_provider
=
mtr_file_exists
("
/usr/lib/galera/libgalera_smm.so
",
"
/usr/lib64/galera/libgalera_smm.so
");
if
((
check_wsrep_provider_env
()
==
1
)
||
(
$file_wsrep_provider
ne
""))
{
# Add galera test suites
mtr_report
("
- adding wsrep, galera to default test suites
");
push
@DEFAULT_SUITES
,
qw(wsrep galera)
;
}
}
}
...
...
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