summaryrefslogtreecommitdiff
path: root/mysql-test/suite.pm
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-20185: Windows: Use of uninitialized value $bpath in string eqJulius Goryavsky2019-08-191-3/+3
| | | | | | | | | | | | | The execution of mtr in the Windows environment fails due to the fact that the new code from MDEV-18565 does not take into account the need to add the ".exe" extension to the names of executable files when searching for pre-requisites that are needed to run SST scripts (especially when using mariabackup) and when searching paths to some other Galera utilities. This patch fixes this flaw. Also adding paths to the PATH environment variable is now done with the correct delimiter character.
* MDEV-18565: Galera mtr-suite fails if galera library is not installed (#1243)sysprg2019-07-091-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 branch '10.2' into 10.3Oleksandr Byelkin2019-05-121-0/+4
|\
| * Merge branch '10.1' into 10.2Oleksandr Byelkin2019-05-041-0/+5
| |\
| | * MDEV-18131 MariaDB does not verify IP addresses from subject alternativeVladislav Vaintroub2019-04-281-0/+5
| | | | | | | | | | | | | | | | | | | | | names Added a call to X509_check_ip_asc() in case server_hostname represents an IP address.
* | | Merge branch '10.2' into 10.3Sergei Golubchik2019-01-251-3/+2
|\ \ \ | |/ /
| * | Fix tests not to fail with OpenSSL 1.1.1 with TLSv1.3Sergei Golubchik2019-01-251-2/+2
| | |
* | | Merge 10.2 into 10.3Marko Mäkelä2018-11-061-3/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| |\ \ | | |/
| | * Merge branch '10.0' into 10.1Sergei Golubchik2018-10-311-3/+3
| | |\
| | | * MDEV-12023 Assertion failure sym_node->table != NULL on startupMarko Mäkelä2018-10-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | row_drop_table_for_mysql(): Avoid accessing non-existing dictionary tables. dict_create_or_check_foreign_constraint_tables(): Add debug instrumentation for creating and dropping a table before the creation of any non-core dictionary tables. trx_purge_add_update_undo_to_history(): Adjust a debug assertion, so that it will not fail due to the test instrumentation.
* | | | Merge 10.2 into 10.3Marko Mäkelä2018-04-231-0/+3
|\ \ \ \ | |/ / /
| * | | Merge 10.1 into 10.2Marko Mäkelä2018-04-211-0/+3
| |\ \ \ | | |/ /
| | * | skip innodb-table-online,crypt tests if no encryption pluginSergei Golubchik2018-04-131-0/+3
| | | |
* | | | Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-3/+3
| | | |
* | | | Merge branch '10.2' into 10.3Sergei Golubchik2018-03-281-0/+3
|\ \ \ \ | |/ / /
| * | | Merge branch '10.1' into 10.2Sergei Golubchik2018-03-251-0/+3
| |\ \ \ | | |/ /
| | * | MDEV-15409 make sure every sst script is tested in buildbotSergei Golubchik2018-03-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | galera SST tests have a debug part, but we don't want to limit them to fulltest2 builder. So, add support for test files that have a debug part: * add maybe_debug.inc and maybe_debug.combinations * 'debug' combination is run when debug is available * 'release' combination is run otherwise * test wraps debug parts in if($with_debug) { ... } * and creates ,debug.rdiff for debug results
* | | | Remove XtraDBMarko Mäkelä2017-06-211-11/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XtraDB storage engine was already replaced by InnoDB and disabled in MariaDB Server 10.2. Let us remove it altogether to avoid dragging dead code around. Replace some references to XtraDB with references to InnoDB. rpl_get_position_info(): Remove. Remove the mysql-test-run --suite=percona, because it only contains tests specific to XtraDB, many of which were disabled already in earlier MariaDB versions.
* | | Merge 10.1 into 10.2Marko Mäkelä2017-05-061-0/+4
|\ \ \ | |/ / | | | | | | | | | | | | Also, include fixes by Vladislav Vaintroub to the aws_key_management plugin. The AWS C++ SDK specifically depends on OPENSSL_LIBRARIES, not generic SSL_LIBRARIES (such as YaSSL).
| * | MDEV-10594 SSL hostname verification fails for SubjectAltNamesSergei Golubchik2017-04-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | use X509_check_host for OpenSSL 1.0.2+ This adds: * support for subjectAltNames * wildcards * sub-domain matching
* | | the mysql-test combination is 'innodb' not 'xtradb'Sergei Golubchik2016-12-121-3/+4
| | |
* | | simplify the ipv6 checkSergei Golubchik2016-10-041-8/+3
| | |
* | | MDEV-9185: fix ipv6 detection test in MTRDaniel Black2016-10-041-3/+9
|/ / | | | | | | Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
* | Merge branch '10.0' into 10.1Sergei Golubchik2016-02-231-1/+1
|\ \ | |/
| * Merge branch '5.5' into 10.0Sergei Golubchik2016-02-151-1/+1
| |\
| | * more strict ipv6_ok check in mtrSergei Golubchik2016-02-151-1/+1
| | | | | | | | | | | | | | | don't use ipv6 is the check fails for any reason. for example, an ancient solaris perl didn't have sockaddr_in6() in Socket at all.
* | | MDEV-7913 main.openssl_6975 'tlsv10' fails in buildbot on Wheezy and PreciseSergei Golubchik2015-05-301-1/+1
| | | | | | | | | | | | don't run this test on 1.0.1c
* | | move encryption tests to a dedicate suiteSergei Golubchik2015-05-131-4/+0
| | | | | | | | | | | | remove few tests for variables that never existed (merge error)
* | | mtr: don't disable tests in suite.pm unnecessarySergei Golubchik2015-04-091-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | only those tests should be disabled in suite.pm that cannot be disabled from mysqltest files (e.g. when the server is started with a special command-line option - unknown option will abort the server before mysqltest will start its checks).
* | | Skip necessary encryption tests if required plugin is not found.Jan Lindström2015-03-271-0/+6
| | |
* | | MDEV-7772: SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundledJan Lindström2015-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two problems: - Read/Write outside of buffer at memcpy() because of incorrect parameters . OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion Added: mysql-test/include/encryption_algorithms.combinations to run tests with methods cbc, ecb and ctr in those systems where they are available (see suite.pm).
* | | mtr check for openssl support for AES_CTRSergei Golubchik2015-02-101-0/+4
| | |
* | | new read-only server variable version_ssl_librarySergei Golubchik2015-02-101-1/+2
| | |
* | | Merge branch '10.0' into bb-10.1-mergeSergei Golubchik2014-12-021-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .bzrignore VERSION cmake/plugin.cmake debian/dist/Debian/control debian/dist/Ubuntu/control mysql-test/r/join_outer.result mysql-test/r/join_outer_jcl6.result mysql-test/r/null.result mysql-test/r/old-mode.result mysql-test/r/union.result mysql-test/t/join_outer.test mysql-test/t/null.test mysql-test/t/old-mode.test mysql-test/t/union.test packaging/rpm-oel/mysql.spec.in scripts/mysql_config.sh sql/ha_ndbcluster.cc sql/ha_ndbcluster_binlog.cc sql/ha_ndbcluster_cond.cc sql/item_cmpfunc.h sql/lock.cc sql/sql_select.cc sql/sql_show.cc sql/sql_update.cc sql/sql_yacc.yy storage/innobase/buf/buf0flu.cc storage/innobase/fil/fil0fil.cc storage/innobase/include/srv0srv.h storage/innobase/lock/lock0lock.cc storage/tokudb/CMakeLists.txt storage/xtradb/buf/buf0flu.cc storage/xtradb/fil/fil0fil.cc storage/xtradb/include/srv0srv.h storage/xtradb/lock/lock0lock.cc support-files/mysql.spec.sh
| * | silence stderr correctlySergei Golubchik2014-11-221-1/+1
| | |
| * | 5.5 mergeSergei Golubchik2014-11-201-1/+1
| |\ \ | | |/
| | * followup: disable openssl_6975.test as appropriateSergei Golubchik2014-11-201-1/+1
| | |
| * | 5.5 mergeSergei Golubchik2014-11-191-0/+3
| |\ \ | | |/
| | * openssl-poodle_6975.test: don't run it for older OpenSSL versionsSergei Golubchik2014-11-191-0/+3
| | |
* | | make sysvars_* tests to work on 32-bit tooSergei Golubchik2014-10-111-0/+10
|/ /
* | XtraDB made the defaultSergei Golubchik2014-03-071-3/+3
| |
* | 10.0-base mergeSergei Golubchik2014-02-261-4/+8
|\ \ | |/
| * mtr: smarter check for usable ipv6.Sergei Golubchik2014-02-171-4/+8
| | | | | | | | | | | | Handles the case of sysctl net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6=1
* | mysql-test:Sergei Golubchik2013-12-221-2/+8
| | | | | | | | | | * rename "xtradb" combination to be called "innodb" * disable xtradb_plugin embedded tests (because of RECOMPILE_FOR_EMBEDDED)
* | avoid mtr errors for --plugin-add=EXAMPLE=$HA_EXAMPLE_SOSergei Golubchik2013-01-311-0/+3
| | | | | | | | when no ha_example.so is built
* | more fixes for test casesSergei Golubchik2012-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysql-test/suite/innodb/include/restart_and_reinit.inc: drop and recreate mysql.innodb* tables when deleting innodb table spaces mysql-test/t/ssl_8k_key-master.opt: with loose- prefix ssl errors are ignored sql-common/client.c: compiler warnings sql/field.cc: use the new function sql/item.cc: don't convert time to double or decimal via longlong, this loses sub-second part. Use dedicated functions. sql/item.h: incorrect cast_to_int type for params sql/item_strfunc.cc: use the new function sql/lex.h: unused sql/my_decimal.h: helper macro sql/sql_plugin.cc: workaround for a compiler warning sql/sql_yacc.yy: unused sql/transaction.cc: fix the merge for SERVER_STATUS_IN_TRANS_READONLY protocol flag storage/sphinx/CMakeLists.txt: compiler warnings
* | fixes for test failuresSergei Golubchik2012-09-271-0/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and small collateral changes mysql-test/lib/My/Test.pm: somehow with "print" we get truncated writes sometimes mysql-test/suite/perfschema/r/digest_table_full.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/dml_handler.result: host table is not ported over yet mysql-test/suite/perfschema/r/information_schema.result: host table is not ported over yet mysql-test/suite/perfschema/r/nesting.result: this differs, because we don't rewrite general log queries, and multi-statement packets are logged as a one entry. this result file is identical to what mysql-5.6.5 produces with the --log-raw option. mysql-test/suite/perfschema/r/relaylog.result: MariaDB modifies the binlog index file directly, while MySQL 5.6 has a feature "crash-safe binlog index" and modifies a special "crash-safe" shadow copy of the index file and then moves it over. That's why this test shows "NONE" index file writes in MySQL and "MANY" in MariaDB. mysql-test/suite/perfschema/r/server_init.result: MariaDB initializes the "manager" resources from the "manager" thread, and starts this thread only when --flush-time is not 0. MySQL 5.6 initializes "manager" resources unconditionally on server startup. mysql-test/suite/perfschema/r/stage_mdl_global.result: this differs, because MariaDB disables query cache when query_cache_size=0. MySQL does not do that, and this causes useless mutex locks and waits. mysql-test/suite/perfschema/r/statement_digest.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/statement_digest_consumers.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/statement_digest_long_query.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result: will be updated to match 5.6 when alfranio.correia@oracle.com-20110512172919-c1b5kmum4h52g0ni and anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y are merged mysql-test/suite/rpl/r/rpl_non_direct_mixed_mixing_engines.result: will be updated to match 5.6 when anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y is merged
* bugfix: mysqld failed to start if a compiled-in plugin failed to initializeSergei Golubchik2012-04-171-0/+3
| | | | (--xxx=ON behaving as --xxx=FORCE)
* instead of having win/notwin tests that only differ in results,Sergei Golubchik2012-02-231-0/+4
| | | | | | use one test with two combinations (win/unix), where only one is enabled. Apply this technique to mysqld--help.