Commit edc0e9fb authored by unknown's avatar unknown

Use "--skip-innodb" if running with testcases that does not need innodb

Decreases test time when running a selected number of tests


mysql-test/lib/mtr_cases.pl:
  Remove fixme, it's fiexd now
mysql-test/mysql-test-run.pl:
  Use "--skip-innodb" if running with testcases that does not need innodb
parent c0966c4f
...@@ -469,14 +469,6 @@ sub collect_one_test_case($$$$$$$) { ...@@ -469,14 +469,6 @@ sub collect_one_test_case($$$$$$$) {
{ {
mtr_options_from_test_file($tinfo,"$testdir/${tname}.test"); mtr_options_from_test_file($tinfo,"$testdir/${tname}.test");
if ( ! $tinfo->{'innodb_test'} )
{
# mtr_verbose("Adding '--skip-innodb' to $tinfo->{'name'}");
# FIXME activate the --skip-innodb only when running with
# selected test cases
# push(@{$tinfo->{'master_opt'}}, "--skip-innodb");
}
if ( $tinfo->{'big_test'} and ! $::opt_big_test ) if ( $tinfo->{'big_test'} and ! $::opt_big_test )
{ {
$tinfo->{'skip'}= 1; $tinfo->{'skip'}= 1;
......
...@@ -258,6 +258,7 @@ our $opt_result_ext; ...@@ -258,6 +258,7 @@ our $opt_result_ext;
our $opt_skip; our $opt_skip;
our $opt_skip_rpl; our $opt_skip_rpl;
our $use_slaves; our $use_slaves;
our $use_innodb;
our $opt_skip_test; our $opt_skip_test;
our $opt_skip_im; our $opt_skip_im;
...@@ -428,6 +429,7 @@ sub main () { ...@@ -428,6 +429,7 @@ sub main () {
$need_ndbcluster||= $test->{ndb_test}; $need_ndbcluster||= $test->{ndb_test};
$need_im||= $test->{component_id} eq 'im'; $need_im||= $test->{component_id} eq 'im';
$use_slaves||= $test->{slave_num}; $use_slaves||= $test->{slave_num};
$use_innodb||= $test->{'innodb_test'};
} }
$opt_skip_ndbcluster= $opt_skip_ndbcluster_slave= 1 $opt_skip_ndbcluster= $opt_skip_ndbcluster_slave= 1
unless $need_ndbcluster; unless $need_ndbcluster;
...@@ -2236,8 +2238,9 @@ sub initialize_servers () { ...@@ -2236,8 +2238,9 @@ sub initialize_servers () {
sub mysql_install_db () { sub mysql_install_db () {
# FIXME not exactly true I think, needs improvements
install_db('master', $master->[0]->{'path_myddir'}); install_db('master', $master->[0]->{'path_myddir'});
# FIXME check if testcase really is using second master
copy_install_db('master', $master->[1]->{'path_myddir'}); copy_install_db('master', $master->[1]->{'path_myddir'});
if ( $use_slaves ) if ( $use_slaves )
...@@ -2252,10 +2255,8 @@ sub mysql_install_db () { ...@@ -2252,10 +2255,8 @@ sub mysql_install_db () {
im_prepare_env($instance_manager); im_prepare_env($instance_manager);
} }
my $cluster_started_ok= 1; # Assume it can be started my $cluster_started_ok= 1; # Assume it can be started
if (ndbcluster_start_install($clusters->[0]) || if (ndbcluster_start_install($clusters->[0]) ||
$use_slaves && ndbcluster_start_install($clusters->[1])) $use_slaves && ndbcluster_start_install($clusters->[1]))
{ {
...@@ -2263,7 +2264,6 @@ sub mysql_install_db () { ...@@ -2263,7 +2264,6 @@ sub mysql_install_db () {
$cluster_started_ok= 0; $cluster_started_ok= 0;
} }
foreach my $cluster (@{$clusters}) foreach my $cluster (@{$clusters})
{ {
...@@ -2903,7 +2903,7 @@ sub mysqld_arguments ($$$$$) { ...@@ -2903,7 +2903,7 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg($args, "%s--datadir=%s", $prefix, mtr_add_arg($args, "%s--datadir=%s", $prefix,
$master->[$idx]->{'path_myddir'}); $master->[$idx]->{'path_myddir'});
if ( $idx > 0 ) if ( $idx > 0 or !$use_innodb)
{ {
mtr_add_arg($args, "%s--skip-innodb", $prefix); mtr_add_arg($args, "%s--skip-innodb", $prefix);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment