summaryrefslogtreecommitdiff
path: root/mysql-test/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge 5.5 into 10.0Marko Mäkelä2018-11-071-1/+1
|\
| * test framework manual is movedTakashi Sasaki2018-11-011-1/+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-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 remote-tracking branch '5.5' into 10.0Vicențiu Ciorbaru2018-01-241-1/+1
|\ \ | |/
| * Finally! Make './mtr --valgrind-mysqld --gdb' to work.Sergei Golubchik2018-01-221-1/+1
| | | | | | | | | | | | | | | | It has its limitations, e.g. it assumes that there's only one gdb and only one valgrind process is running. And a hard-coded one-second delay might be too short for slow machines. Still, it's better than "doesn't work at all"
| * Fix use of `require` in mysql-test-run.Oleksandr Byelkin2017-04-192-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this is that Perl is moving towards not having current directory ./ in @INC by default. This is causing mysql-test-run.pl to fail in latest Debian Unstable: https://lists.debian.org/debian-devel-announce/2016/08/msg00013.html However, we have `use "lib"`, there is no need for current directory in @INC, except for a gross hack. In mtr_cases.pm, there is a `require "mtr_misc.pl"`, which hides mtr_misc.pl away in mtr_cases namespace. And things only work because mysql-test-run.pl loads it with a different name, `require "lib/mtr_misc.pl"`! (Perl will `require` only once for each unique filename). Fix this by only using `require` in main program, and referencing functions with :: scope from other namespaces. For multi-use in different namespaces, proper `use` modules should be used. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
* | Produce better diagnostics when backtrace attempt failsElena Stepanova2017-02-011-2/+12
| |
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-09-292-5/+53
|\ \ | |/
| * MDEV-10907 MTR and server writes can interleave in the error logVladislav Vaintroub2016-09-272-5/+53
| | | | | | | | | | Ensure atomic appends to the error log by using CreateFile with FILE_APPEND_DATA flag to open error log file (both MTR and server)
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-09-271-5/+1
|\ \ | |/
| * Windows , mtr : allow cdb to print core dumps also if --parallel > 1Vladislav Vaintroub2016-09-261-5/+1
| |
* | Fix use of `require` in mysql-test-run.Kristian Nielsen2016-09-102-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this is that Perl is moving towards not having current directory ./ in @INC by default. This is causing mysql-test-run.pl to fail in latest Debian Unstable: https://lists.debian.org/debian-devel-announce/2016/08/msg00013.html However, we have `use "lib"`, there is no need for current directory in @INC, except for a gross hack. In mtr_cases.pm, there is a `require "mtr_misc.pl"`, which hides mtr_misc.pl away in mtr_cases namespace. And things only work because mysql-test-run.pl loads it with a different name, `require "lib/mtr_misc.pl"`! (Perl will `require` only once for each unique filename). Fix this by only using `require` in main program, and referencing functions with :: scope from other namespaces. For multi-use in different namespaces, proper `use` modules should be used. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
* | MDEV-10604 Create a list of unstable MTR tests to be disabled in ↵mariadb-10.0.27Elena Stepanova2016-08-241-3/+20
| | | | | | | | | | | | | | | | | | | | distribution builds - mysql-test/unstable-tests list is created, it includes = tests identified as unstable by Debian; = tests which failed in buildbot on 10.0 over the last ~6 months and were not fixed; = tests which have been recently modified or newly added - '*' wildcard is now supported in skip lists
* | Cleanups and minor fixesMonty2016-08-211-1/+1
| | | | | | | | | | | | | | | | - Fixed typos - Added --core-on-failure to mysql-test-run - More DBUG_PRINT in viosocket.c - Don't forget CLIENT_REMEMBER_OPTIONS for compressed slave protocol - Removed not used stage variables
* | Fix spelling: occurred, execute, which etcOtto Kekäläinen2016-03-042-2/+2
| |
* | mtr: read both suitedir/disabled.def and suitedir/t/disabled.defSergei Golubchik2016-02-171-0/+1
| | | | | | | | this simplifies merging of MySQL and TokuDB
* | Merge branch '5.5' into 10.0Vladislav Vaintroub2015-12-301-5/+5
|\ \ | |/
| * Fix process handle leak in buildbot. GenerateConsoleCtrlEvent sent to ↵Vladislav Vaintroub2015-12-301-5/+5
| | | | | | | | non-existing process will add a process handle to this non-existing process to console host process conhost.exe
* | Fixes to get all test to run on MacosX Lion 10.7Monty2015-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes fixing all utilities to not have any memory leaks, as safemalloc warnings stopped tests from passing on MacOSX. - Ensure that all clients takes character-set-dir, as the libmysqlclient library will use it. - mysql-test-run now passes character-set-dir to all external clients. - Changed dynstr_free() so that it can be called twice (made freeing code easier) - Changed rpl_global_gtid_slave_state to be allocated dynamicly as it includes a mutex that needs to be initizlied/destroyed before my_end() is called. - Removed rpl_slave_state::init() and rpl_slave_stage::deinit() as their job are better handling by constructor and delete. - Print alias instead of table_name in check_duplicate_key as table_name may have been converted to lower case. Other things: - Fixed a case in time_to_datetime_with_warn() where we where using && instead of & in tests
* | MDEV-8669 MTR client connections on Windows became much slower.Vladislav Vaintroub2015-11-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | The regression is caused by change bind-address server parameter in MDEV-8083, so now server listens on IPv4 only by default. The problem however is that on Windows, connection to server on localhost appears to be much faster, if server listens on IPv6/dual stack. mysql_real_connect() would try to connect to IPv6 loopback first, and if this fails, the failing connect() call takes several seconds. To fix, use bind-address=* on Windows, and 127.0.0.1 elsewhere
* | Merge branch '5.5' into 10.0Sergei Golubchik2015-05-041-6/+5
|\ \ | |/
| * MDEV-7859 SSL hostname verification fails for long subject namesSergei Golubchik2015-04-271-6/+5
| | | | | | | | | | | | | | | | Don't use a fixed buffer for X509_NAME_oneline() in the client. Do as the server does - allocate it dynamically. For a test - regenerate certificates to have the server cert with a long subject.
* | Merge branch '5.5' into 10.0Sergei Golubchik2015-03-061-5/+13
|\ \ | |/
| * MDEV-7659 buildbot may leave stale mysqldSergei Golubchik2015-03-061-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | safe_process puts its children (mysqld, in this case) into a separate process group, to be able to kill it all at once. buildslave kills mtr's process group when it loses connection to the master. result? buildslave kills mtr and safe_process, but leaves stale mysqld processes in their own process groups. fix: put safe_process itself into a separate process group, then buildslave won't kill it and safe_process will kill mysqld'd and itself when it will notice that the parent mtr no longer exists.
* | 5.5 mergeSergei Golubchik2015-01-291-0/+31
|\ \ | |/
| * recreate expired certificates for SSL testsSergei Golubchik2015-01-291-0/+31
| | | | | | | | | | added a script to regenerate certificates easily in the future (2035!) restored server8k-key.pem to actually be 8K key, as it was supposed to
* | 5.5 mergeSergei Golubchik2015-01-212-0/+4
|\ \ | |/
| * MDEV-7448 - mtr may leave stale mysqldSergey Vojtovich2015-01-142-0/+4
| | | | | | | | | | | | Let mtr handle SIGHUP the same way as SIGINT. This solves stale mysqld processes left after broken/closed ssh connection.
* | 5.5.40+ mergeSergei Golubchik2014-10-091-0/+2
|\ \ | |/
| * MDEV-5707 MTR fails on kfreebsdSergei Golubchik2014-10-021-0/+2
| | | | | | | | apply debian's patch to workaround kfreebsd bug
* | MDEV-6280 can't skip test with slash in its nameSergei Golubchik2014-06-021-1/+1
| |
* | 5.5 mergeSergei Golubchik2014-05-091-0/+1
|\ \ | |/
| * mysql-5.5.37 selective mergeSergei Golubchik2014-03-271-0/+1
| |\
| | * Updated/added copyright header. Added line "use is subject to license terms" Murthy Narkedimilli2014-02-171-0/+1
| | | | | | | | | | | | | | | to copyright header.
* | | Options option_name=0 in combination files were processed incorrectlyElena Stepanova2014-03-311-1/+1
| | |
* | | 10.0-base mergeSergei Golubchik2014-02-262-3/+2
|\ \ \
| * \ \ 5.5 mergeSergei Golubchik2014-02-252-3/+2
| |\ \ \ | | |/ /
| | * | MySQL-5.5.36 mergeSergei Golubchik2014-02-172-3/+2
| | |\ \ | | | |/ | | | | | | | | (without few incorrect bugfixes and with 1250 files where only a copyright year was changed)
| | | * Updated/added copyright headersMurthy Narkedimilli2014-01-062-3/+2
| | | |
* | | | mtr: allow nested plugin suites to be defaults tooSergei Golubchik2014-02-061-6/+11
| | | |
* | | | mtr: abort when a suite.pm fails to load, don't just ignore the errors.Sergei Golubchik2013-12-221-0/+1
| | | | | | | | | | | | | | | | Fix all suite.pm files that had errors and test files that were skipped because of that
* | | | 10.0-base mergeSergei Golubchik2013-12-163-18/+52
|\ \ \ \ | |/ / /
| * | | 5.5 mergeSergei Golubchik2013-12-152-17/+51
| |\ \ \ | | |/ /
| | * | install and package plugin suites.Sergei Golubchik2013-11-271-17/+28
| | | |
| | * | mysql-test: allow suite.pm add its suite to the default list.Sergei Golubchik2013-11-272-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | run tokudb suites by default. mark big and slow tests tokudb.change_column_all_1000_1 and tokudb.change_column_all_1000_10 test as --big
| * | | 5.5 mergeSergei Golubchik2013-11-231-1/+1
| |\ \ \ | | |/ /
| | * | mysql-5.5.34 mergeSergei Golubchik2013-11-191-1/+1
| | |\ \ | | | |/ | | | | | | | | (some patches reverted, test case added)
| | | * upmerge bug 17035577 5.1 => 5.5sayantan dutta2013-07-171-1/+1
| | | |\