mirror of
https://github.com/MariaDB/server.git
synced 2025-05-27 01:57:48 +03:00
- Fixed code that was not ready for a major version number > 9 - Fixed test cases that assumed max major version number could be 9 Updated version number for depricated options (will be removed in a later commit) VERSION: Version number 10.0.0 client/mysqlbinlog.cc: Added support for major version numbers > 9 cmake/mysql_version.cmake: Added support for version numbers that is 0 mysql-test/r/comments.result: Modified test to handle version number 100000 mysql-test/r/func_system.result: Modified test to handle version number 100000 mysql-test/r/log_state.result: Updated depricated error message mysql-test/r/sp.result: Modified test to handle version number 100000 mysql-test/r/subselect4.result: Updated depricated error message mysql-test/r/variables.result: Updated depricated error message mysql-test/suite/rpl/r/rpl_conditional_comments.result: Modified test to handle version number 100000 mysql-test/suite/rpl/r/rpl_loaddatalocal.result: Modified test to handle version number 100000 mysql-test/suite/rpl/t/rpl_conditional_comments.test: Modified test to handle version number 100000 mysql-test/suite/rpl/t/rpl_loaddatalocal.test: Modified test to handle version number 100000 mysql-test/suite/sys_vars/r/debug_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/engine_condition_pushdown_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/log_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/log_slow_queries_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/multi_range_count_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/rpl_recovery_rank_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/sql_big_selects_func.result: Updated depricated error message mysql-test/suite/sys_vars/r/sql_max_join_size_basic.result: Updated depricated error message mysql-test/suite/sys_vars/r/sql_max_join_size_func.result: Updated depricated error message mysql-test/t/comments.test: Modified test to handle version number 100000 mysql-test/t/file_contents.test: Modified test to handle version number 100000 mysql-test/t/func_system.test: Modified test to handle version number 100000 mysql-test/t/parser_not_embedded.test: Modified test to handle version number 100000 mysql-test/t/sp.test: Modified test to handle version number 100000 sql/mysqld.cc: Updated version number for depricated options (will be removed in a later commit) sql/slave.cc: Modified test to handle version number 100000 Better error messages sql/sql_lex.cc: Modified test to handle version number 100000 in comment syntax sql/sys_vars.cc: Updated version number for depricated options (will be removed in a later commit)
69 lines
2.5 KiB
Plaintext
69 lines
2.5 KiB
Plaintext
#
|
|
# Testing files that were built to be packaged, both for existence and for contents
|
|
#
|
|
|
|
#
|
|
# Bug #42969: Create MANIFEST files
|
|
#
|
|
# Use a Perl script to verify that files "docs/INFO_BIN" and "docs/INFO_SRC" do exist
|
|
# and have the expected contents.
|
|
|
|
--perl
|
|
print "\nChecking 'INFO_SRC' and 'INFO_BIN'\n";
|
|
$dir_bin = $ENV{'MYSQL_BINDIR'};
|
|
if ($dir_bin eq '/usr/') {
|
|
# RPM package
|
|
$dir_docs = $dir_bin;
|
|
$dir_docs =~ s|/lib|/share/doc|;
|
|
if(-d "$dir_docs/packages") {
|
|
# SuSE: "packages/" in the documentation path
|
|
$dir_docs = glob "$dir_docs/packages/MySQL-server*";
|
|
} else {
|
|
# RedHat: version number in directory name
|
|
$dir_docs = glob "$dir_docs/MySQL-server*";
|
|
}
|
|
} elsif ($dir_bin eq '/usr') {
|
|
# RPM build during development
|
|
$dir_docs = "$dir_bin/share/doc";
|
|
if(-d "$dir_docs/packages") {
|
|
# SuSE: "packages/" in the documentation path
|
|
$dir_docs = glob "$dir_docs/packages/MySQL-server*";
|
|
} else {
|
|
# RedHat/Debian: version number in directory name
|
|
$dir_docs = glob "$dir_docs/mariadb-server-*";
|
|
$dir_docs = glob "$dir_docs/MySQL-server*" unless -d $dir_docs;
|
|
}
|
|
} else {
|
|
# tar.gz package, Windows, or developer work (in BZR)
|
|
$dir_docs = $dir_bin;
|
|
if(-d "$dir_docs/docs") {
|
|
$dir_docs = "$dir_docs/docs"; # package
|
|
} else {
|
|
$dir_docs = "$dir_docs/Docs"; # development tree
|
|
}
|
|
}
|
|
$found_version = "No line 'MySQL source #.#.#'";
|
|
$found_revision = "No line 'revision-id: .....'";
|
|
open(I_SRC,"<","$dir_docs/INFO_SRC") or print "Cannot open 'INFO_SRC' in '$dir_docs' (starting from bindir '$dir_bin')\n";
|
|
while(defined ($line = <I_SRC>)) {
|
|
if ($line =~ m|^MySQL source \d+\.\d\.\d+|) {$found_version = "Found MySQL version number";}
|
|
if ($line =~ m|^revision-id: .*@.*-2\d{13}-\w+$|) {$found_revision = "Found BZR revision id";}
|
|
}
|
|
close I_SRC;
|
|
print "INFO_SRC: $found_version / $found_revision\n";
|
|
$found_compiler = "No line about compiler information";
|
|
$found_features = "No line 'Feature flags'";
|
|
open(I_BIN,"<","$dir_docs/INFO_BIN") or print "Cannot open 'INFO_BIN' in '$dir_docs' (starting from bindir '$dir_bin')\n";
|
|
while(defined ($line = <I_BIN>)) {
|
|
# "generator" on Windows, "flags" on Unix:
|
|
if (($line =~ m| Compiler / generator used: |) ||
|
|
($line =~ m| Compiler flags used |)) {$found_compiler = "Found 'Compiler ... used' line";}
|
|
if ($line =~ m| Feature flags used:|) {$found_features = "Found 'Feature flags' line";}
|
|
}
|
|
close I_BIN;
|
|
print "INFO_BIN: $found_compiler / $found_features\n";
|
|
EOF
|
|
|
|
--echo
|
|
--echo End of tests
|