Commit 4c191de3 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7560: wsrep* tests depend on the version of galera library

Added an include file to check galera library version.
parent 16c44623
# ==== 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
...@@ -29,6 +29,8 @@ CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*") ...@@ -29,6 +29,8 @@ CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*")
--disable_query_log --disable_query_log
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER'; eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
--let $galera_version=25.3.5
source include/check_galera_version.inc;
--enable_query_log --enable_query_log
--replace_column 2 # --replace_column 2 #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment