List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:April 4 2011 6:40am
Subject:bzr commit into mysql-5.1-telco-6.2 branch (magnus.blaudd:3145)
View as plain text  
#At file:///data0/magnus/mysql/merge-5.1.54/6.2/ based on revid:magnus.blaudd@stripped9pwz3z

 3145 Magnus Blåudd	2011-04-04
      ndb - backport mtr.pl fix to detect if the current build is MySQL Cluster and auto enable ndb tests in that case

    modified:
      mysql-test/mysql-test-run.pl
=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2011-03-22 10:20:55 +0000
+++ b/mysql-test/mysql-test-run.pl	2011-04-04 06:40:32 +0000
@@ -93,6 +93,7 @@ require "lib/mtr_misc.pl";
 $SIG{INT}= sub { mtr_error("Got ^C signal"); };
 
 our $mysql_version_id;
+my $mysql_version_extra;
 our $glob_mysql_test_dir;
 our $basedir;
 
@@ -1596,12 +1597,13 @@ sub collect_mysqld_features {
       # Look for version
       my $exe_name= basename($exe_mysqld);
       mtr_verbose("exe_name: $exe_name");
-      if ( $line =~ /^\S*$exe_name\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)/ )
+      if ( $line =~ /^\S*$exe_name\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)([^\s]*)/ )
       {
 	#print "Major: $1 Minor: $2 Build: $3\n";
 	$mysql_version_id= $1*10000 + $2*100 + $3;
 	#print "mysql_version_id: $mysql_version_id\n";
 	mtr_report("MySQL Version $1.$2.$3");
+	$mysql_version_extra= $4;
       }
     }
     else
@@ -2433,6 +2435,16 @@ sub vs_config_dirs ($$) {
 sub check_ndbcluster_support ($) {
   my $mysqld_variables= shift;
 
+  # Check if this is MySQL Cluster, ie. mysql version string ends
+  # with -ndb-Y.Y.Y[-status]
+  if ( defined $mysql_version_extra &&
+       $mysql_version_extra =~ /^-ndb-/ )
+  {
+    mtr_report(" - MySQL Cluster");
+    # Enable ndb engine in MySQL Cluster build
+    $opt_include_ndbcluster = 1;
+  }
+
   if ($opt_include_ndbcluster)
   {
     $opt_skip_ndbcluster= 0;

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110404064032-buq60zm2pxl6tydn.bundle
Thread
bzr commit into mysql-5.1-telco-6.2 branch (magnus.blaudd:3145) Magnus Blåudd4 Apr