List:Commits« Previous MessageNext Message »
From:msvensson Date:September 1 2006 8:01am
Subject:bk commit into 5.1 tree (msvensson:1.2296)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-09-01 10:01:47+02:00, msvensson@shellback.(none) +2 -0
  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@stripped, 2006-09-01 10:01:43+02:00, msvensson@shellback.(none) +0 -8
    Remove fixme, it's fiexd now

  mysql-test/mysql-test-run.pl@stripped, 2006-09-01 10:01:43+02:00, msvensson@shellback.(none) +5 -5
    Use "--skip-innodb" if running with testcases that does not need innodb

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	shellback.(none)
# Root:	/home/msvensson/mysql/mysql-5.1-new-maint

--- 1.31/mysql-test/lib/mtr_cases.pl	2006-09-01 10:01:59 +02:00
+++ 1.32/mysql-test/lib/mtr_cases.pl	2006-09-01 10:01:59 +02:00
@@ -469,14 +469,6 @@
   {
     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 )
     {
       $tinfo->{'skip'}= 1;

--- 1.161/mysql-test/mysql-test-run.pl	2006-09-01 10:01:59 +02:00
+++ 1.162/mysql-test/mysql-test-run.pl	2006-09-01 10:01:59 +02:00
@@ -258,6 +258,7 @@
 our $opt_skip;
 our $opt_skip_rpl;
 our $use_slaves;
+our $use_innodb;
 our $opt_skip_test;
 our $opt_skip_im;
 
@@ -428,6 +429,7 @@
       $need_ndbcluster||= $test->{ndb_test};
       $need_im||= $test->{component_id} eq 'im';
       $use_slaves||= $test->{slave_num};
+      $use_innodb||= $test->{'innodb_test'};
     }
     $opt_skip_ndbcluster= $opt_skip_ndbcluster_slave= 1
       unless $need_ndbcluster;
@@ -2236,8 +2238,9 @@
 
 sub mysql_install_db () {
 
-  # FIXME not exactly true I think, needs improvements
   install_db('master', $master->[0]->{'path_myddir'});
+
+  # FIXME check if testcase really is using second master
   copy_install_db('master', $master->[1]->{'path_myddir'});
 
   if ( $use_slaves )
@@ -2252,10 +2255,8 @@
     im_prepare_env($instance_manager);
   }
 
-
   my $cluster_started_ok= 1; # Assume it can be started
 
-
   if (ndbcluster_start_install($clusters->[0]) ||
       $use_slaves && ndbcluster_start_install($clusters->[1]))
   {
@@ -2263,7 +2264,6 @@
     $cluster_started_ok= 0;
   }
 
-
   foreach my $cluster (@{$clusters})
   {
 
@@ -2903,7 +2903,7 @@
     mtr_add_arg($args, "%s--datadir=%s", $prefix,
                 $master->[$idx]->{'path_myddir'});
 
-    if ( $idx > 0 )
+    if ( $idx > 0 or !$use_innodb)
     {
       mtr_add_arg($args, "%s--skip-innodb", $prefix);
     }
Thread
bk commit into 5.1 tree (msvensson:1.2296)msvensson1 Sep