mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-7560: wsrep* tests depend on the version of galera library
Added an include file to check galera library version.
This commit is contained in:
parent
8ee5668033
commit
aa2904a7f4
2 changed files with 26 additions and 0 deletions
24
mysql-test/suite/wsrep/include/check_galera_version.inc
Normal file
24
mysql-test/suite/wsrep/include/check_galera_version.inc
Normal file
|
@ -0,0 +1,24 @@
|
|||
# ==== Purpose ====
|
||||
# Enable tests to check the galera library version.
|
||||
#
|
||||
# ==== Usage ====
|
||||
# --let $galera_version=25.3.6
|
||||
# source include/check_galera_lib_version.inc;
|
||||
#
|
||||
# Parameters:
|
||||
# $galera_version
|
||||
# Version of the galera library required by the test.
|
||||
#
|
||||
|
||||
--disable_query_log
|
||||
|
||||
eval SET @GALERA_VERSION=(SELECT CONCAT('$galera_version', '%'));
|
||||
|
||||
if (!`SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE
|
||||
VARIABLE_NAME LIKE 'wsrep_provider_version' AND
|
||||
VARIABLE_VALUE LIKE @GALERA_VERSION`)
|
||||
{
|
||||
skip Test requires Galera library version $galera_version;
|
||||
}
|
||||
|
||||
--enable_query_log
|
|
@ -28,6 +28,8 @@ CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*")
|
|||
|
||||
--disable_query_log
|
||||
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
|
||||
--let $galera_version=25.3.5
|
||||
source include/check_galera_version.inc;
|
||||
--enable_query_log
|
||||
|
||||
--replace_column 2 #
|
||||
|
|
Loading…
Reference in a new issue