mirror of
https://github.com/MariaDB/server.git
synced 2025-06-12 01:53:02 +03:00
Example of the failure: http://buildbot.askmonty.org/buildbot/builders/bld-p9-rhel7/builds/4417/steps/mtr/logs/stdio ``` main.mysqld--help 'unix' w17 [ fail ] Test ended at 2020-06-20 18:51:45 CURRENT_TEST: main.mysqld--help --- /opt/buildbot-slave/bld-p9-rhel7/build/mysql-test/main/mysqld--help.result 2020-06-20 16:06:49.903604179 +0300 +++ /opt/buildbot-slave/bld-p9-rhel7/build/mysql-test/main/mysqld--help.reject 2020-06-20 18:51:44.886766820 +0300 @@ -1797,10 +1797,10 @@ sync-relay-log-info 10000 sysdate-is-now FALSE system-versioning-alter-history ERROR -table-cache 421 +table-cache 2000 table-definition-cache 400 -table-open-cache 421 -table-open-cache-instances 1 +table-open-cache 2000 +table-open-cache-instances 8 tc-heuristic-recover OFF tcp-keepalive-interval 0 tcp-keepalive-probes 0 mysqltest: Result length mismatch ``` mtr: table_open_cache_basic autosized: Lets assume that >400 are available and that we can set the result back to the start value. All of these system variables are autosized and can generate MTR output differences. Closes #1527
71 lines
2.7 KiB
Plaintext
71 lines
2.7 KiB
Plaintext
#
|
|
# mysqld --help
|
|
#
|
|
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
--source include/have_profiling.inc
|
|
--source include/platform.inc
|
|
|
|
#
|
|
# force lower-case-table-names=1 (linux/macosx have different defaults)
|
|
# force symbolic-links=0 (valgrind build has a different default)
|
|
#
|
|
|
|
exec $MYSQLD_BOOTSTRAP_CMD --symbolic-links=0 --lower-case-table-names=1 --help --verbose > $MYSQL_TMP_DIR/mysqld--help.txt 2>&1;
|
|
|
|
# The inline perl code below will copy $MYSQL_TMP_DIR/mysqld--help.txt
|
|
# to output, but filter away some variable stuff (e.g. paths).
|
|
|
|
perl;
|
|
# Variables which we don't want to display in the result file since
|
|
# their paths may vary:
|
|
@skipvars=qw/basedir open-files-limit general-log-file log plugin-dir
|
|
log-slow-queries pid-file slow-query-log-file log-basename
|
|
datadir slave-load-tmpdir tmpdir socket thread-pool-size
|
|
large-files-support lower-case-file-system system-time-zone
|
|
collation-server character-set-server log-tc-size table-cache
|
|
table-open-cache max-connections version.*/;
|
|
|
|
# Plugins which may or may not be there:
|
|
@plugins=qw/innodb archive blackhole federated partition
|
|
feedback debug temp-pool ssl des-key-file xtradb sequence
|
|
thread-concurrency super-large-pages mutex-deadlock-detector
|
|
connect null-audit aria oqgraph sphinx thread-handling
|
|
test-sql-discovery rpl-semi-sync query-cache-info
|
|
query-response-time metadata-lock-info locales unix-socket
|
|
wsrep file-key-management cracklib-password-check/;
|
|
|
|
# And substitute the content some environment variables with their
|
|
# names:
|
|
@env=qw/MYSQLTEST_VARDIR MYSQL_TEST_DIR MYSQL_CHARSETSDIR MYSQL_SHAREDIR/;
|
|
|
|
$re1=join('|', @skipvars, @plugins);
|
|
$re2=join('|', @plugins);
|
|
$skip=0;
|
|
open(F, '<', "$ENV{MYSQL_TMP_DIR}/mysqld--help.txt") or die;
|
|
print "Windows bug: new line disappears when it is exactly at the right offset.\n";
|
|
while (<F>) {
|
|
next if 1../The following groups are read/;
|
|
# formatting, skip line consisting entirely of dashes and blanks
|
|
next if /^[\- ]+\s?$/;
|
|
next if /Value \(after reading options\)/; # skip table header
|
|
next if /^($re1) /;
|
|
next if /^($re2)-/;
|
|
$skip=0 if /^ -/ or /^$/;
|
|
$skip=1 if / --($re2)\b/;
|
|
y!\\!/!;
|
|
s/[ ]+/ /; # squeeze spaces to remove table formatting
|
|
# fixes for 32-bit
|
|
s/\b4294967295\b/18446744073709551615/;
|
|
s/\b2146435072\b/9223372036853727232/;
|
|
s/\b372736\b/299008/;
|
|
s/\b4294963200\b/18446744073709547520/;
|
|
foreach $var (@env) { s/\Q$ENV{$var}\E/$var/ }
|
|
next if /use --skip-(use-)?symbolic-links to disable/; # for valgrind, again
|
|
next if $skip;
|
|
print;
|
|
}
|
|
close F;
|
|
EOF
|
|
|