summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | Merge 10.2 into 10.3Marko Mäkelä2020-04-151-1/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.1 into 10.2Marko Mäkelä2020-04-141-1/+1
| |\ \ \ | | |/ /
| | * | MDEV-22176 Add JUnit support to MTR to generate XML test resultRasmus Johansson2020-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | 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.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.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
* | | | 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
* | | | 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)
* | | | Merge 10.2 into 10.3Marko Mäkelä2019-05-1416-16/+16
|\ \ \ \ | |/ / /
| * | | Merge 10.1 into 10.2Marko Mäkelä2019-05-1316-16/+16
| |\ \ \ | | |/ /
| | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1116-16/+16
| | |\ \ | | | |/
| | | * Update FSF AddressVicențiu Ciorbaru2019-05-1116-16/+16
| | | | | | | | | | | | | | | | * Update wrong zip-code
* | | | 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-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
* | | | | 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.
* | | | | 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
| |\ \ \ \ | | |/ / /
| | * | | mtr: force-flush stderr and stdoutSergei Golubchik2018-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevents buffering in cases like ./mtr | tee log
* | | | | Merge branch 'bb-10.2-ext' into 10.3Sergei Golubchik2018-02-232-4/+31
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.1' into 10.2Sergei Golubchik2018-02-222-4/+31
| |\ \ \ \ | | |/ / /
| | * | | log all mtr output in vardir/log/stdout.logSergei Golubchik2018-02-212-4/+31
| | | | | | | | | | | | | | | | | | | | despite the name, it logs both stdout and stderr
* | | | | Make possible to use clang on Windows (clang-cl)Vladislav Vaintroub2018-02-202-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -DWITH_ASAN can be used as well now, on x64 Fix many clang-cl warnings.
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2018-02-151-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch 'github/10.1' into 10.2Sergei Golubchik2018-02-061-1/+1
| |\ \ \ \ | | |/ / /