summaryrefslogtreecommitdiff
path: root/mysql-test/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | MDEV-18565: Galera mtr-suite fails if galera library is not installedJulius Goryavsky2019-07-173-1/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-07-021-1/+25
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-07-021-1/+25
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Eugene Kosov2019-06-231-1/+25
| | |\ \ \ | | | |/ /
| | | * | Merge 5.5 into 10.1Eugene Kosov2019-06-201-1/+25
| | | |\ \ | | | | |/
| | | | * MDEV-19531 Add colors to mtrEugene Kosov2019-06-191-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Colors possibility auto detected. [ such ] stuff is colored. Patch by Sergei Golubchik
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-06-122-5/+20
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-06-112-5/+20
| |\ \ \ \ | | |/ / /
| | * | | Fix mysql-test-run.pl to work after d6d5c168cf1Sergei Golubchik2019-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | option values now have to be edited in-place, instead of replacing an option with another one that has the same name but a new value.
| | * | | Fixed typo in Config.pgmMonty2019-06-061-1/+1
| | | | |
| | * | | Fixed that test suite doesn't remove duplicate optionsMonty2019-06-061-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | - multiple usage of plugin-load-add and optimizer-switch are now included in generated config files
| | * | | Ensure that tests and programs can restore variablesMonty2019-06-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - --default-character-set can now be disabled in mysqldump - --skip-resolve can be be disabled in mysqld - mysql_client_test now resets global variables it changes - mtr couldn't handle [mysqldump] in config files (wrong regexp used)
* | | | | Added new file client-certkey.pem for testing CONC-386:Georg Richter2019-06-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | client-certkey.pem contains both certificate and corresponding private key.
* | | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-05-1953-53/+53
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-05-1452-52/+52
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Marko Mäkelä2019-05-1352-52/+52
| | |\ \ \ | | | |/ /
| | | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1153-53/+53
| | | |\ \ | | | | |/
| | | | * Update FSF AddressVicențiu Ciorbaru2019-05-1153-53/+53
| | | | | | | | | | | | | | | | | | | | * Update wrong zip-code
| * | | | Merge branch '10.2' into 10.3Oleksandr Byelkin2019-05-121-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Merge branch '10.1' into 10.2Oleksandr Byelkin2019-05-041-1/+1
| | |\ \ \ | | | |/ /
| | | * | MDEV-18131 MariaDB does not verify IP addresses from subject alternativeVladislav Vaintroub2019-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | names Added a call to X509_check_ip_asc() in case server_hostname represents an IP address.
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-03-041-9/+28
| |\ \ \ \ | | |/ / /
| | * | | SSL test fixesSergei Golubchik2019-03-011-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix CRL tests to work * regenerate certificates to be at least 2048 bit (fixes buster and rhel8 in buildbot) * update generate-ssl-cert.sh to generate crl files * make all SSL tests to use certificates generated in generate-ssl-cert.sh, remove unused certificates Backport from 10.4 9c60535f8676
* | | | | SSL test fixesmariadb-10.4.2Sergei Golubchik2019-01-281-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix CRL tests to work * regenerate certificates to be at least 2048 bit (fixes buster and rhel8 in buildbot) * update generate-ssl-cert.sh to generate crl files * make all SSL tests to use certificates generated in generate-ssl-cert.sh, remove unused certificates
* | | | | MDEV-16266 - New command FLUSH SSL to reload server's SSL ↵Vladislav Vaintroub2018-12-121-0/+5
| | | | | | | | | | | | | | | | | | | | certificate(private key,CRL,etc)
* | | | | Fixed that mtr --extern works with --include/have_innodb.incMonty2018-12-091-0/+1
| | | | |
* | | | | Merge 10.3 into 10.4mariadb-10.4.0Marko Mäkelä2018-11-081-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2018-11-071-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Marko Mäkelä2018-11-071-1/+1
| | |\ \ \ | | | |/ /
| | | * | Merge 10.0 into 10.1Marko Mäkelä2018-11-071-1/+1
| | | |\ \
| | | | * \ Merge 5.5 into 10.0Marko Mäkelä2018-11-071-1/+1
| | | | |\ \ | | | | | |/
| | | | | * test framework manual is movedTakashi Sasaki2018-11-011-1/+1
| | | | | |
* | | | | | Merge 10.3 into 10.4Marko Mäkelä2018-11-061-5/+1
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 10.2 into 10.3Marko Mäkelä2018-11-061-5/+1
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.derived_cond_pushdown: Move all 10.3 tests to the end, trim trailing white space, and add an "End of 10.3 tests" marker. Add --sorted_result to tests where the ordering is not deterministic. main.win_percentile: Add --sorted_result to tests where the ordering is no longer deterministic.
| | * | | | Merge 10.1 into 10.2Marko Mäkelä2018-11-061-5/+1
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge branch '10.0' into 10.1Sergei Golubchik2018-10-301-5/+1
| | | |\ \ \ | | | | |/ /
| | | | * | Merge branch '5.5' into 10.0Sergei Golubchik2018-10-271-5/+1
| | | | |\ \ | | | | | |/
| | | | | * mtr: no warning when an environment variable isn't setSergei Golubchik2018-09-221-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e.g. "No option named 'FILE_KEY_MANAGEMENT_SO' in group 'ENV' at lib/My/ConfigFactory.pm line 370." when a test has `plugin-load-add=@ENV.FILE_KEY_MANAGEMENT_SO`
* | | | | | MDEV-16536 Remove shared memory transportVladislav Vaintroub2018-08-201-21/+0
|/ / / / /
* | | | | MDEV-14900 Upstream 10.3 debian patchesSergei Golubchik2018-08-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | applied (at least partially): * armhf_mroonga_storage_fail.patch (unaligned write) * mysqld_multi.server_lsb-header.patch (add LSB header) * fix-spelling-errors.patch (tabxml.cpp) * hurd_socket.patch (in Platform.pm) * remove-systemd-obsolete-target.patch
* | | | | Print out retry count when using mysql-test-run --repeatMonty2018-05-221-1/+1
| | | | |
* | | | | Better crash reports on OS XSergey Vojtovich2018-05-211-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | Symlink core from default location (/cores/core.%P), so that lldb can handle it.
* | | | | Added support for lldb core analysis in mtrSergey Vojtovich2018-05-211-0/+39
| | | | |
* | | | | Merge branch '10.2' into 10.3Sergei Golubchik2018-05-111-8/+6
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.1' into 10.2Sergei Golubchik2018-05-101-8/+6
| |\ \ \ \ | | |/ / /
| | * | | Merge branch '10.0' into 10.1Sergei Golubchik2018-05-051-8/+6
| | |\ \ \ | | | |/ /
| | | * | MDEV-16084 Calling exit() from a signal handler is unsafe.Vladislav Vaintroub2018-05-031-8/+6
| | | | | | | | | | | | | | | | | | | | Call _exit() from signal handler. main() can just do return.
* | | | | Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-6/+7
| | | | |
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2018-03-131-0/+2
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.1 into 10.2Marko Mäkelä2018-03-121-0/+2
| |\ \ \ \ | | |/ / /