summaryrefslogtreecommitdiff
path: root/mysql-test/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.3 into 10.4Marko Mäkelä2020-07-029-9/+9
|\
| * Merge 10.2 into 10.3Marko Mäkelä2020-07-029-9/+9
| |\
| | * Merge 10.1 into 10.2bb-10.2-mergeMarko Mäkelä2020-07-019-9/+9
| | |\
| | | * mtr: use env for perlDaniel Black2020-06-239-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On FreeBSD, perl isn't in /usr/bin, its in /usr/local/bin or elsewhere in the path. Like storage/{maria/unittest/,}ma_test_* , we use /usr/bin/env to find perl and run it.
| | | * MDEV-22631 fixRasmus Johansson2020-05-201-1/+11
| | | |
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-05-301-15/+45
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-05-291-15/+45
| |\ \ \ | | |/ /
| | * | mtr: update titlebar when the test ends, not when it startsSergei Golubchik2020-05-271-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | otherwise it reaches "0 tests left" state and then waits for a few minutes for all workers to complete their tests. show failures. account for retries.
| | * | MDEV-22631 fixRasmus Johansson2020-05-201-1/+11
| | | |
| * | | MDEV-22631 fixRasmus Johansson2020-05-201-1/+11
| | | |
* | | | MDEV-22631 fixRasmus Johansson2020-05-201-1/+11
| | | |
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-05-201-1/+3
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-05-201-1/+3
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2020-05-201-1/+3
| | |\ \ | | | |/
| | | * MDEV-22631 some test causes MTR interruption without generating summary and XMLRasmus Johansson2020-05-191-1/+3
| | | |
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-05-131-4/+8
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-05-131-4/+8
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2020-05-131-4/+8
| | |\ \ | | | |/
| | | * MDEV-22273 jUnit patch: xml test result differs from MTR output in case if retryRasmus Johansson2020-05-041-4/+7
| | | |
| | | * MDEV-22270 JUnit patch: test name contains classnameRasmus Johansson2020-05-041-0/+1
| | | |
* | | | MDEV-21965 main.tls_version and main.tls_version1 fail in buildbot on Ubuntu ↵Sergei Golubchik2020-05-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Focal Not only Ubuntu Focal builds openssl with OPENSSL_TLS_SECURITY_LEVEL=2, but for some unfathomable reason it patches openssl sources to disable TLS < 1.2 at security level 2, even though openssl manual says it should only happen at level 4: https://www.openssl.org/docs/man1.1.0/man3/SSL_CTX_set_security_level.html We test TLSv1.1 and TLSv1, so we have to override Focal defaults in mtr.
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-05-051-1/+1
|\ \ \ \ | |/ / /
| * | | Merge branch '10.2' into 10.3Oleksandr Byelkin2020-05-041-1/+1
| |\ \ \ | | |/ /
| | * | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-05-021-1/+1
| | |\ \ | | | |/
| | | * Merge branch '5.5' into 10.1Oleksandr Byelkin2020-04-301-1/+1
| | | |\
| | | | * Fix wrong argument size passed to --parent-pid strncmp checkDisconnect3d2020-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR fixes wrong size argument passed in `strncmp(arg, "--parent-pid", 10)` as the `"--parent-pid"` string has length of 12. Closes #1502
* | | | | MDEV-18565 Galera mtr-suite fails if galera library is not installedSergei Golubchik2020-04-273-118/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | revert/simplify f5390eea9a9 remove galera-specific checks from mtr and the main suite
* | | | | Merge 10.3 into 10.4Marko Mäkelä2020-04-162-1/+91
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | In main.index_merge_myisam we remove the test that was added in commit a2d24def8cc42d27c72d833abfb39ef24a2b96ba because it duplicates the test case that was added in commit 5af12e463549e4bbc2ce6ab720d78937d5e5db4e.
| * | | | Merge 10.2 into 10.3Marko Mäkelä2020-04-152-1/+91
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Marko Mäkelä2020-04-142-1/+91
| | |\ \ \ | | | |/ /
| | | * | MDEV-22176 Add JUnit support to MTR to generate XML test resultRasmus Johansson2020-04-072-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new parameter has been added called xml-report, with which the filename of the XML file is given to which the XML result is written. There is also xml-package for adding a package value in the XML output. Example usage: ./mysql-test-run.pl main.events_bugs innodb.count_distinct main.explain_json innodb.file_format_defaults json.json_no_table --suite=main,innodb,json --force --xml-report=build123456789.xml --xml-package=simpletestrun
* | | | | Fixup cd2c0e013ccb5f9b009743dfd7188585a539d9b5Marko Mäkelä2020-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The variable 'dlh' was being used uninitialized if WSREP_PROVIDER is not set.
* | | | | Added error output wsrep_print_versionMonty2020-01-291-5/+16
| | | | | | | | | | | | | | | | | | | | This helps to determinate why galera library doesn't load
* | | | | Merge branch '10.3' into 10.4Sergei Golubchik2019-09-061-3/+5
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.2' into 10.3Sergei Golubchik2019-09-061-3/+5
| |\ \ \ \ | | |/ / /
| | * | | MDEV-20421: big_innodb_log reliably fails on buildbot WindowsVlad Lesin2019-09-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test fails because it reuses mysqltest perl code to copy directory tree, and this code contains Windows-specific piece which outputs some diagnostic information. The patch introduces new parameter for that Windows-specific perl code to have the ability to suppress diagnostic output on the corresponding mysqltest perl module initialization.
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-08-311-2/+2
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-08-281-2/+2
| |\ \ \ \ | | |/ / /
| | * | | MTR : improve detection of handles.exe on Windows.Vladislav Vaintroub2019-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Depending on version, "handle.exe -?" can output either "Handle v4.0" or "Nthandle v4.1"
* | | | | Merge 10.3 into 10.4, except for MDEV-20265Marko Mäkelä2019-08-231-0/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MDEV-20265 commit e746f451d57def4be679caafc29976741b3e89f7 introduces DBUG_ASSERT(right_op == r_tbl) in st_select_lex::add_cross_joined_table(), and that assertion would fail in several tests that exercise joins. That commit was skipped in this merge, and a separate fix of MDEV-20265 will be necessary in 10.4.
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-08-211-0/+2
| |\ \ \ \ | | |/ / /
| | * | | MDEV-20377: Fix uninitialized memory in mysqltestMarko Mäkelä2019-08-191-0/+2
| | | | |
| | * | | 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-251-0/+7
|\ \ \ \ \ | |/ / / /
| * | | | Added missing installation target (merge MDEV-18565 from 10.2 into 10.3)Julius Goryavsky2019-07-171-0/+3
| | | | |
| * | | | Merge 10.2 into 10.3Eugene Kosov2019-07-161-0/+7
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Eugene Kosov2019-07-091-0/+7
| | |\ \ \ | | | |/ /
| | | * | MDEV-8874 Replication filters configured in my.cnf are ignored if slave ↵Sachin2019-06-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reset and reconfigured Don't delete the rpl_filter on RESET SLAVE.
| * | | | Improved error messages and added another path to the version check utilityJulius Goryavsky2019-07-151-2/+2
| | | | |
| * | | | MDEV-18565: Galera mtr-suite fails if galera library is not installed (#1243)sysprg2019-07-093-1/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. https://jira.mariadb.org/browse/MDEV-18565 * Build without additional utility in configurations without wsrep support