diff --git a/.bzrignore b/.bzrignore index 017c41f2188..c54083a4209 100644 --- a/.bzrignore +++ b/.bzrignore @@ -43,7 +43,6 @@ *.vcxproj *.vcxproj.filters */*.dir/* -*.dir Debug MySql.sdf Win32 @@ -497,7 +496,6 @@ contrib/*.ds? contrib/*.vcproj core core.* -core.2430 cscope.in.out cscope.out cscope.po.out @@ -1314,6 +1312,7 @@ mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz mysql-test/*.ds? mysql-test/*.vcproj mysql-test/.DS_Store +mysql-test/collections/default.release mysql-test/funcs_1.log mysql-test/funcs_1.tar mysql-test/gmon.out @@ -1335,81 +1334,17 @@ mysql-test/r/*.err mysql-test/r/*.log mysql-test/r/*.out mysql-test/r/*.reject -mysql-test/r/alter_table.err -mysql-test/r/archive.err -mysql-test/r/backup.log -mysql-test/r/bdb-alter-table-1.err -mysql-test/r/bdb-alter-table-2.err -mysql-test/r/bdb-crash.err -mysql-test/r/bdb-deadlock.err -mysql-test/r/bdb.err -mysql-test/r/bdb.log -mysql-test/r/bdb_cache.err -mysql-test/r/blackhole.log -mysql-test/r/client_test.err -mysql-test/r/csv.err -mysql-test/r/ctype_ucs.err -mysql-test/r/derived.err -mysql-test/r/events.log -mysql-test/r/events_bugs.log -mysql-test/r/events_logs_tests.log -mysql-test/r/exampledb.err -mysql-test/r/func_encrypt.err -mysql-test/r/im_client_port.log mysql-test/r/index_merge_load.result -mysql-test/r/isam.err -mysql-test/r/lowercase_table2.err mysql-test/r/max_allowed_packet_func.result -mysql-test/r/multi_update.err -mysql-test/r/mysql_protocols.err -mysql-test/r/mysqlbinlog.err -mysql-test/r/mysqlbinlog2.err -mysql-test/r/mysqldump.err -mysql-test/r/mysqltest.err -mysql-test/r/mysqltest.log -mysql-test/r/ndb_alter_table.err -mysql-test/r/ndb_autodiscover.err -mysql-test/r/ndb_autodiscover2.err -mysql-test/r/ndb_basic.err -mysql-test/r/ndb_blob.err -mysql-test/r/ndb_cache.err -mysql-test/r/ndb_charset.err -mysql-test/r/ndb_index.err -mysql-test/r/ndb_index_ordered.err -mysql-test/r/ndb_index_unique.err -mysql-test/r/ndb_insert.err -mysql-test/r/ndb_limit.err -mysql-test/r/ndb_lock.err -mysql-test/r/ndb_minmax.err -mysql-test/r/ndb_replace.err -mysql-test/r/ndb_subquery.err -mysql-test/r/ndb_transaction.err -mysql-test/r/ndb_truncate.err -mysql-test/r/ndb_types.err -mysql-test/r/ndb_update.err -mysql-test/r/openssl_1.err -mysql-test/r/ps_1general.err -mysql-test/r/ps_6bdb.err -mysql-test/r/ps_7ndb.err -mysql-test/r/query_cache.err -mysql-test/r/query_cache_merge.err -mysql-test/r/raid.err -mysql-test/r/repair.err -mysql-test/r/replace.err -mysql-test/r/rpl000001.err mysql-test/r/rpl000001.eval mysql-test/r/rpl000002.eval mysql-test/r/rpl000014.eval -mysql-test/r/rpl000015.err mysql-test/r/rpl000015.eval mysql-test/r/rpl000016.eval mysql-test/r/rpl_log.eval mysql-test/r/slave-running.eval mysql-test/r/slave-stopped.eval -mysql-test/r/symlink.log -mysql-test/r/system_mysql_db.log mysql-test/r/tmp.result -mysql-test/r/udf.log mysql-test/reg.log mysql-test/rpl.log mysql-test/share/mysql @@ -3104,9 +3039,7 @@ sql/share/swedish sql/share/ukrainian libmysqld/examples/mysqltest.cc libmysqld/sql_signal.cc -libmysqld/rpl_handler.cc libmysqld/debug_sync.cc -libmysqld/rpl_handler.cc dbug/tests libmysqld/mdl.cc client/transaction.h diff --git a/mysql-test/CMakeLists.txt b/mysql-test/CMakeLists.txt index 655d8e086eb..954e9c44311 100644 --- a/mysql-test/CMakeLists.txt +++ b/mysql-test/CMakeLists.txt @@ -132,3 +132,26 @@ ADD_CUSTOM_TARGET(test-bt-debug COMMAND ${MTR_FORCE} --comment=debug --timer --skip-ndbcluster --skip-rpl --report-features ${EXP} ) +# Process .in files with includes in collections/ + +MACRO(PROCESS_COLLECTION_INCLUDE collin collection) + FILE(STRINGS ${collin} inlines) + FOREACH(line ${inlines}) + IF(${line} MATCHES "#include .*") + STRING(REPLACE "#include " "collections/" incfile ${line}) + FILE(READ ${incfile} contents) + FILE(APPEND ${collection} "${contents}") + ELSE() + FILE(APPEND ${collection} "${line}\n") + ENDIF() + ENDFOREACH() +ENDMACRO() + +FILE(GLOB infiles "collections/*.in") +FOREACH(collin ${infiles}) + STRING(REPLACE ".in" "" collection ${collin}) + # Only generate file once + IF(NOT EXISTS ${collection}) + PROCESS_COLLECTION_INCLUDE(${collin} ${collection}) + ENDIF() +ENDFOREACH() diff --git a/mysql-test/collections/README b/mysql-test/collections/README index 9af84646a40..f64c089ee99 100644 --- a/mysql-test/collections/README +++ b/mysql-test/collections/README @@ -28,3 +28,11 @@ these steps: 5) The commands from the collection are run line by line via execv() or similar system calls. They are not run as a shell script. Shell expansions are not guaranteed to work and most likely won't. + +The directory may contain collections that are "super sets" of others, +identified by a file name suffix ".in". These files may contain lines +"#include ", or lines with mysql-test-run.pl invocations. +CMake will create a new file without the .in suffix where +the include lines are replaced with the contents of the referred +file. Filename is local to the collections directory, and includes do +not nest. diff --git a/mysql-test/collections/default.release b/mysql-test/collections/default.release.in similarity index 91% rename from mysql-test/collections/default.release rename to mysql-test/collections/default.release.in index 108e1032ca2..0e3ad30671b 100644 --- a/mysql-test/collections/default.release +++ b/mysql-test/collections/default.release.in @@ -1,3 +1,9 @@ +# This file contains the old default.release, the plan is to replace that +# with something like the below (remove space after #): + +# include default.daily +# include default.weekly + perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-ndbcluster --skip-rpl --report-features --debug-server perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --skip-ndbcluster --report-features perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --skip-ndbcluster --ps-protocol diff --git a/mysql-test/include/mtr_check.sql b/mysql-test/include/mtr_check.sql index 699a35a1831..975669004ce 100644 --- a/mysql-test/include/mtr_check.sql +++ b/mysql-test/include/mtr_check.sql @@ -27,7 +27,8 @@ BEGIN -- Dump all global variables except those -- that are supposed to change SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES - WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; + WHERE variable_name NOT IN ('timestamp', 'innodb_file_format_max') + ORDER BY VARIABLE_NAME; -- Dump all databases, there should be none -- except those that was created during bootstrap diff --git a/mysql-test/lib/My/CoreDump.pm b/mysql-test/lib/My/CoreDump.pm index b0c4a1337d8..419a0e7f39f 100644 --- a/mysql-test/lib/My/CoreDump.pm +++ b/mysql-test/lib/My/CoreDump.pm @@ -81,7 +81,7 @@ sub _gdb { return if $? >> 8; return unless $gdb_output; - resfile_print <