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:
Nirbhay Choubey 2015-02-27 22:13:37 -05:00
parent 8ee5668033
commit aa2904a7f4
2 changed files with 26 additions and 0 deletions

View 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

View file

@ -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 #