mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
add --report-features to mysql-test-run.pl
This commit is contained in:
parent
f893128839
commit
f1764fa99f
2 changed files with 60 additions and 3 deletions
11
mysql-test/include/report-features.test
Normal file
11
mysql-test/include/report-features.test
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#
|
||||||
|
# show server variables
|
||||||
|
#
|
||||||
|
|
||||||
|
--disable_query_log
|
||||||
|
--echo ===== ENGINES =====
|
||||||
|
show engines;
|
||||||
|
--echo ===== VARIABLES =====
|
||||||
|
show variables;
|
||||||
|
--echo ===== STOP =====
|
||||||
|
--enable_query_log
|
|
@ -182,6 +182,7 @@ our $opt_force;
|
||||||
our $opt_reorder= 0;
|
our $opt_reorder= 0;
|
||||||
our $opt_enable_disabled;
|
our $opt_enable_disabled;
|
||||||
our $opt_mem;
|
our $opt_mem;
|
||||||
|
our $opt_report_features;
|
||||||
|
|
||||||
our $opt_gcov;
|
our $opt_gcov;
|
||||||
our $opt_gcov_err;
|
our $opt_gcov_err;
|
||||||
|
@ -427,6 +428,10 @@ sub main () {
|
||||||
|
|
||||||
initialize_servers();
|
initialize_servers();
|
||||||
|
|
||||||
|
if ( $opt_report_features ) {
|
||||||
|
run_report_features();
|
||||||
|
}
|
||||||
|
|
||||||
run_suite($opt_suite, $tests);
|
run_suite($opt_suite, $tests);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -670,6 +675,7 @@ sub command_line_setup () {
|
||||||
'mem' => \$opt_mem,
|
'mem' => \$opt_mem,
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
|
'report-features' => \$opt_report_features,
|
||||||
'comment=s' => \$opt_comment,
|
'comment=s' => \$opt_comment,
|
||||||
'debug' => \$opt_debug,
|
'debug' => \$opt_debug,
|
||||||
'fast' => \$opt_fast,
|
'fast' => \$opt_fast,
|
||||||
|
@ -4190,6 +4196,43 @@ sub run_check_testcase ($$) {
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# Report the features that were compiled in
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
sub run_report_features () {
|
||||||
|
my $args;
|
||||||
|
|
||||||
|
if ( ! $glob_use_embedded_server )
|
||||||
|
{
|
||||||
|
mysqld_start($master->[0],[],[]);
|
||||||
|
if ( ! $master->[0]->{'pid'} )
|
||||||
|
{
|
||||||
|
mtr_error("Can't start the mysqld server");
|
||||||
|
}
|
||||||
|
mysqld_wait_started($master->[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
my $tinfo = {};
|
||||||
|
$tinfo->{'name'} = 'report features';
|
||||||
|
$tinfo->{'result_file'} = undef;
|
||||||
|
$tinfo->{'component_id'} = 'mysqld';
|
||||||
|
$tinfo->{'path'} = 'include/report-features.test';
|
||||||
|
$tinfo->{'timezone'}= "GMT-3";
|
||||||
|
$tinfo->{'slave_num'} = 0;
|
||||||
|
$tinfo->{'master_opt'} = [];
|
||||||
|
$tinfo->{'slave_opt'} = [];
|
||||||
|
$tinfo->{'slave_mi'} = [];
|
||||||
|
$tinfo->{'comment'} = 'report server features';
|
||||||
|
run_mysqltest($tinfo);
|
||||||
|
|
||||||
|
if ( ! $glob_use_embedded_server )
|
||||||
|
{
|
||||||
|
stop_all_servers();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sub run_mysqltest ($) {
|
sub run_mysqltest ($) {
|
||||||
|
@ -4329,8 +4372,10 @@ sub run_mysqltest ($) {
|
||||||
mtr_add_arg($args, "--test-file");
|
mtr_add_arg($args, "--test-file");
|
||||||
mtr_add_arg($args, $tinfo->{'path'});
|
mtr_add_arg($args, $tinfo->{'path'});
|
||||||
|
|
||||||
|
if ( defined $tinfo->{'result_file'} ) {
|
||||||
mtr_add_arg($args, "--result-file");
|
mtr_add_arg($args, "--result-file");
|
||||||
mtr_add_arg($args, $tinfo->{'result_file'});
|
mtr_add_arg($args, $tinfo->{'result_file'});
|
||||||
|
}
|
||||||
|
|
||||||
if ( $opt_record )
|
if ( $opt_record )
|
||||||
{
|
{
|
||||||
|
@ -4739,3 +4784,4 @@ HERE
|
||||||
mtr_exit(1);
|
mtr_exit(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue