Skip to content

Commit aa2904a

Browse files
author
Nirbhay Choubey
committed
MDEV-7560: wsrep* tests depend on the version of galera library
Added an include file to check galera library version.
1 parent 8ee5668 commit aa2904a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ==== Purpose ====
2+
# Enable tests to check the galera library version.
3+
#
4+
# ==== Usage ====
5+
# --let $galera_version=25.3.6
6+
# source include/check_galera_lib_version.inc;
7+
#
8+
# Parameters:
9+
# $galera_version
10+
# Version of the galera library required by the test.
11+
#
12+
13+
--disable_query_log
14+
15+
eval SET @GALERA_VERSION=(SELECT CONCAT('$galera_version', '%'));
16+
17+
if (!`SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE
18+
VARIABLE_NAME LIKE 'wsrep_provider_version' AND
19+
VARIABLE_VALUE LIKE @GALERA_VERSION`)
20+
{
21+
skip Test requires Galera library version $galera_version;
22+
}
23+
24+
--enable_query_log

mysql-test/suite/wsrep/t/variables.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*")
2828

2929
--disable_query_log
3030
eval SET GLOBAL wsrep_provider= '$WSREP_PROVIDER';
31+
--let $galera_version=25.3.5
32+
source include/check_galera_version.inc;
3133
--enable_query_log
3234

3335
--replace_column 2 #

0 commit comments

Comments
 (0)