List:Commits« Previous MessageNext Message »
From:tim Date:November 10 2006 6:11pm
Subject:bk commit into 4.1 tree (tsmith:1.2555)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of tim. When tim 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-11-10 10:11:37-07:00, tsmith@stripped +1 -0
  Merge tsmith@stripped:/home/bk/mysql-4.1
  into  siva.hindu.god:/usr/home/tim/m/bk/41
  MERGE: 1.2543.1.4

  mysql-test/mysql-test-run.pl@stripped, 2006-11-10 10:11:35-07:00, tsmith@stripped +1 -1
    Manual merge
    MERGE: 1.136.1.1

# 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:	tsmith
# Host:	siva.hindu.god
# Root:	/usr/home/tim/m/bk/41/RESYNC

--- 1.144/mysql-test/mysql-test-run.pl	2006-11-10 10:11:41 -07:00
+++ 1.145/mysql-test/mysql-test-run.pl	2006-11-10 10:11:41 -07:00
@@ -182,6 +182,7 @@ our $opt_force;
 our $opt_reorder= 0;
 our $opt_enable_disabled;
 our $opt_mem= $ENV{'MTR_MEM'};
+our $opt_report_features;
 
 our $opt_gcov;
 our $opt_gcov_err;
@@ -423,10 +424,14 @@ sub main () {
     if ( ! $need_im )
     {
      $opt_skip_im= 1;
-   }
+    }
 
     initialize_servers();
 
+    if ( $opt_report_features ) {
+      run_report_features();
+    }
+
     run_suite($opt_suite, $tests);
   }
 
@@ -670,6 +675,7 @@ sub command_line_setup () {
              'mem:s'                    => \$opt_mem,
 
              # Misc
+             'report-features'          => \$opt_report_features,
              'comment=s'                => \$opt_comment,
              'debug'                    => \$opt_debug,
              'fast'                     => \$opt_fast,
@@ -4196,6 +4202,43 @@ sub run_check_testcase ($$) {
   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 ($) {
@@ -4333,8 +4376,10 @@ sub run_mysqltest ($) {
   mtr_add_arg($args, "--test-file");
   mtr_add_arg($args, $tinfo->{'path'});
 
-  mtr_add_arg($args, "--result-file");
-  mtr_add_arg($args, $tinfo->{'result_file'});
+  if ( defined $tinfo->{'result_file'} ) {
+    mtr_add_arg($args, "--result-file");
+    mtr_add_arg($args, $tinfo->{'result_file'});
+  }
 
   if ( $opt_record )
   {
@@ -4746,3 +4791,4 @@ HERE
   mtr_exit(1);
 
 }
+
Thread
bk commit into 4.1 tree (tsmith:1.2555)tim10 Nov