summaryrefslogtreecommitdiff
path: root/mysql-test/suite.pm
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-20170 main.tls_version and main.tls_version1 fail in buildbot on RHEL8Sergei Golubchik2019-12-271-10/+0
| | | | | | | | Instead of trying to detect MinProtocol=TLSv1.2 in all possible sections of files in all possible locations where openssl is configured to find its configuration in all possible distros (and these locations are mutually different in Debian, Ubuntu, and RHEL, btw) - just make mtr to instruct openssl not to read any config files at all.
* 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 installedJulius Goryavsky2019-07-171-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix suite.pm to not garble $_Sergei Golubchik2019-07-021-3/+3
|
* enable TLSv1.0 in WolfSSLSergei Golubchik2019-07-021-0/+2
|
* don't run tls_version test if TLSv1.1 is disabledSergei Golubchik2019-07-021-0/+8
| | | | | | in /etc/ssl/openssl.cnf as it happens to be on the buster builder
* cleanup: mtr suite.pm ssl checksSergei Golubchik2019-07-021-18/+13
|
* MDEV-18531 : Use WolfSSL instead of YaSSL as "bundled" SSL/encryption libraryVladislav Vaintroub2019-05-221-2/+7
| | | | | | | | - Add new submodule for WolfSSL - Build and use wolfssl and wolfcrypt instead of yassl/taocrypt - Use HAVE_WOLFSSL instead of HAVE_YASSL - Increase MY_AES_CTX_SIZE, to avoid compile time asserts in my_crypt.cc (sizeof(EVP_CIPHER_CTX) is larger on WolfSSL)
* 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