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
5ff7ed96
Commit
5ff7ed96
authored
Mar 20, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-15409 make sure every sst script is tested in buildbot
create galera.galera_sst_mariabackup
parent
60d4abc1
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
407 additions
and
1 deletion
+407
-1
mysql-test/suite/galera/include/have_mariabackup.inc
mysql-test/suite/galera/include/have_mariabackup.inc
+4
-0
mysql-test/suite/galera/r/galera_sst_mariabackup.result
mysql-test/suite/galera/r/galera_sst_mariabackup.result
+359
-0
mysql-test/suite/galera/suite.pm
mysql-test/suite/galera/suite.pm
+9
-1
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
+16
-0
mysql-test/suite/galera/t/galera_sst_mariabackup.test
mysql-test/suite/galera/t/galera_sst_mariabackup.test
+19
-0
No files found.
mysql-test/suite/galera/include/have_mariabackup.inc
0 → 100644
View file @
5ff7ed96
#
# suite.pm will make sure that all tests including this file
# will be skipped as needed
#
mysql-test/suite/galera/r/galera_sst_mariabackup.result
0 → 100644
View file @
5ff7ed96
This diff is collapsed.
Click to expand it.
mysql-test/suite/galera/suite.pm
View file @
5ff7ed96
...
@@ -25,6 +25,8 @@ return "No scritps" unless $cpath;
...
@@ -25,6 +25,8 @@ return "No scritps" unless $cpath;
my
(
$epath
)
=
grep
{
-
f
"
$_
/my_print_defaults
";
}
"
$::bindir/extra
",
$::path_client_bindir
;
my
(
$epath
)
=
grep
{
-
f
"
$_
/my_print_defaults
";
}
"
$::bindir/extra
",
$::path_client_bindir
;
return
"
No my_print_defaults
"
unless
$epath
;
return
"
No my_print_defaults
"
unless
$epath
;
my
(
$bpath
)
=
grep
{
-
f
"
$_
/mariabackup
";
}
"
$::bindir/extra/mariabackup
",
$::path_client_bindir
;
sub
which
($)
{
return
`
sh -c "command -v
$_
[0]"
`
}
sub
which
($)
{
return
`
sh -c "command -v
$_
[0]"
`
}
push
@::global_suppressions
,
push
@::global_suppressions
,
...
@@ -79,10 +81,10 @@ push @::global_suppressions,
...
@@ -79,10 +81,10 @@ push @::global_suppressions,
qr|WSREP: JOIN message from member .* in non-primary configuration. Ignored.|
,
qr|WSREP: JOIN message from member .* in non-primary configuration. Ignored.|
,
);
);
$ENV
{
PATH
}
=
"
$epath
:
$ENV
{PATH}
";
$ENV
{
PATH
}
=
"
$epath
:
$ENV
{PATH}
";
$ENV
{
PATH
}
=
"
$spath
:
$ENV
{PATH}
"
unless
$epath
eq
$spath
;
$ENV
{
PATH
}
=
"
$spath
:
$ENV
{PATH}
"
unless
$epath
eq
$spath
;
$ENV
{
PATH
}
=
"
$cpath
:
$ENV
{PATH}
"
unless
$cpath
eq
$spath
;
$ENV
{
PATH
}
=
"
$cpath
:
$ENV
{PATH}
"
unless
$cpath
eq
$spath
;
$ENV
{
PATH
}
=
"
$bpath
:
$ENV
{PATH}
"
unless
$bpath
eq
$spath
;
if
(
which
(
socat
))
{
if
(
which
(
socat
))
{
$ENV
{
MTR_GALERA_TFMT
}
=
'
socat
';
$ENV
{
MTR_GALERA_TFMT
}
=
'
socat
';
...
@@ -96,6 +98,12 @@ sub skip_combinations {
...
@@ -96,6 +98,12 @@ sub skip_combinations {
unless
which
(
innobackupex
);
unless
which
(
innobackupex
);
$skip
{'
include/have_xtrabackup.inc
'}
=
'
Need socat or nc
'
$skip
{'
include/have_xtrabackup.inc
'}
=
'
Need socat or nc
'
unless
$ENV
{
MTR_GALERA_TFMT
};
unless
$ENV
{
MTR_GALERA_TFMT
};
$skip
{'
include/have_mariabackup.inc
'}
=
'
Need mariabackup
'
unless
which
(
mariabackup
);
$skip
{'
include/have_mariabackup.inc
'}
=
'
Need ss
'
unless
which
(
ss
);
$skip
{'
include/have_mariabackup.inc
'}
=
'
Need socat or nc
'
unless
$ENV
{
MTR_GALERA_TFMT
};
%
skip
;
%
skip
;
}
}
...
...
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
0 → 100644
View file @
5ff7ed96
!include ../galera_2nodes.cnf
[mysqld]
wsrep_sst_method=mariabackup
wsrep_sst_auth="root:"
wsrep_debug=ON
[mysqld.1]
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcache.size=1;pc.ignore_sb=true'
[mysqld.2]
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore_sb=true'
[sst]
transferfmt=@ENV.MTR_GALERA_TFMT
streamfmt=xbstream
mysql-test/suite/galera/t/galera_sst_mariabackup.test
0 → 100644
View file @
5ff7ed96
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_mariabackup
.
inc
# Save original auto_increment_offset values.
--
let
$node_1
=
node_1
--
let
$node_2
=
node_2
--
source
include
/
auto_increment_offset_save
.
inc
--
source
suite
/
galera
/
include
/
galera_st_shutdown_slave
.
inc
--
source
suite
/
galera
/
include
/
galera_st_clean_slave
.
inc
--
source
suite
/
galera
/
include
/
galera_st_kill_slave
.
inc
--
source
suite
/
galera
/
include
/
galera_st_kill_slave_ddl
.
inc
# Restore original auto_increment_offset values.
--
source
include
/
auto_increment_offset_restore
.
inc
--
source
include
/
galera_end
.
inc
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