mariadb/mysql-test/suite
Julius Goryavsky 4e02e502f6 MDEV-18565: Galera mtr-suite fails if galera library is not installed
Currently, running mtr with an incorrect (for example, new or
obsolete) version of wsrep_provider (for example, with the 26
version of libgalera_smm.so) leads to the failure of tests in
several suites with vague error diagnostics.

As for the galera_3nodes suite, the mtr also does not effectively
check all the prerequisites after merge with MDEV-18426 fixes.
For example, tests that using mariabackup do not check for presence
of ss and socat/nc. This is due to improper handling of relative
paths in mtr scripts.

In addition, some tests in different suites can be run without
setting the environment variables such as MTR_GALERA_TFMT, XBSTREAM,
and so on.

To eliminate all these issues, this patch makes the following changes:

1. Added auxiliary wsrep_mtr_check utility (which located in the
mysql-test/lib/My/SafeProcess subdirectory), which compares the
versions of the wsrep API that used by the server and by the wsrep
provider library, and it does this comparison safely, without
accessing the API if the versions do not match.

2. All checks related to the presence of mariabackup and utilities
that necessary for its operation transferred from the local directories
of different mtr suites (from the suite.pm files) to the main suite.pm
file. This not only reduces the amount of code and eliminates duplication
of identical code fragments, but also avoids problems due to the inability
of mtr to consider relative paths to include files when checking skip
combinations.

3. Setting the values of auxiliary environment variables that
are necessary for Galera, SST scripts and mariabackup (to work
properly) is moved to the main mysql-test-run.pl script, so as
not to duplicate this code in different suites, and to avoid
partial corrections of the same errors for different suites
(while other suites remain uncorrected).

4. Fixed duplication of the have_file_key_management.inc and
have_filekeymanagement.inc files between different suites,
these checks are also transferred to the top level.

5. Added garbd presence check and garbd path variable.

https://jira.mariadb.org/browse/MDEV-18565
2019-07-17 12:54:12 +02:00
..
archive Merge 10.1 into 10.2 2019-04-25 09:04:09 +03:00
binlog fix MDEV-18750: failed to flashback large-size binlog file 2019-06-05 13:56:27 +02:00
binlog_encryption
csv
encryption MDEV-19914 Server startup fails while dropping garbage encrypted tablespace if innodb_encryption_threads > 0 2019-07-01 15:21:17 +05:30
engines MDEV-14576 Include full name of object in message about incorrect value for column 2018-12-21 13:31:18 +01:00
federated
funcs_1 Merge branch '10.1' into 10.2 2019-05-04 17:04:55 +02:00
funcs_2
galera MDEV-18565: Galera mtr-suite fails if galera library is not installed 2019-07-17 12:54:12 +02:00
galera_3nodes MDEV-18565: Galera mtr-suite fails if galera library is not installed 2019-07-17 12:54:12 +02:00
gcol MDEV-17540 Server crashes in row_purge after TRUNCATE TABLE 2019-05-10 10:50:35 +03:00
handler Merge branch '10.1' into 10.2 2019-03-15 21:00:41 +01:00
heap
innodb MDEV-15641 InnoDB crash while committing table-rebuilding ALTER TABLE 2019-07-10 12:43:51 +05:30
innodb_fts MDEV-19869 Port innodb_fts.fulltext2 from mysql to mariadb. 2019-07-01 13:46:56 +05:30
innodb_gis MDEV-19485: Add a test case 2019-05-16 14:17:22 +03:00
innodb_zip Remove the stray test innodb_zip.16k 2019-06-25 15:55:55 +03:00
jp
json MDEV-13992 Implement JSON_MERGE_PATCH. 2019-05-17 11:53:58 +04:00
large_tests
maria MDEV-14996 kill during FLUSH TABLES FOR EXPORT causes assert 2019-06-27 20:57:25 +03:00
mariabackup MDEV-18565: Galera mtr-suite fails if galera library is not installed 2019-07-17 12:54:12 +02:00
mtr/t
mtr2
multi_source post-merge fixes 2019-07-09 22:24:50 +03:00
optimizer_unfixed_bugs
parts MDEV-9519: Data corruption will happen on the Galera cluster size change 2019-02-26 07:45:11 +02:00
percona
perfschema Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
perfschema_stress Update FSF Address 2019-05-11 21:29:06 +03:00
plugins update a test result, followup fae6539ef7 2019-06-03 15:15:20 +03:00
roles Merge 10.1 into 10.2 2019-04-03 10:32:21 +03:00
rpl Merge 10.1 into 10.2 2019-07-09 13:22:22 +03:00
storage_engine Merge 10.1 into 10.2 2019-03-27 12:26:11 +02:00
stress
sys_vars MDEV-17228 Encrypted temporary tables are not encrypted 2019-06-28 19:07:59 +05:30
unit
vcol Trivial test result update after fix for MDEV-19771 2019-06-16 12:12:00 +03:00
wsrep MDEV-18565: Galera mtr-suite fails if galera library is not installed 2019-07-17 12:54:12 +02:00