[Commits] Rev 3128: mtr runs only "big" tests, if --big-test is repeated twice. in http://bazaar.launchpad.net/~maria-captains/maria/5.1/

serg at askmonty.org serg at askmonty.org
Tue Jan 24 14:54:06 EET 2012


At http://bazaar.launchpad.net/~maria-captains/maria/5.1/

------------------------------------------------------------
revno: 3128
revision-id: sergii at pisem.net-20120124125357-b3o68crdtg2w3fzj
parent: sergii at pisem.net-20120104200126-hhfmhjo8vvvu65vu
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 5.1
timestamp: Tue 2012-01-24 13:53:57 +0100
message:
  mtr runs only "big" tests, if --big-test is repeated twice.
-------------- next part --------------
=== modified file 'mysql-test/lib/mtr_cases.pm'
--- a/mysql-test/lib/mtr_cases.pm	2011-11-30 10:37:28 +0000
+++ b/mysql-test/lib/mtr_cases.pm	2012-01-24 12:53:57 +0000
@@ -925,6 +925,13 @@ sub collect_one_test_case {
     return $tinfo
   }
 
+  if ( ! $tinfo->{'big_test'} and $::opt_big_test > 1 )
+  {
+    $tinfo->{'skip'}= 1;
+    $tinfo->{'comment'}= "Small test";
+    return $tinfo
+  }
+
   if ( $tinfo->{'need_debug'} && ! $::debug_compiled_binaries )
   {
     $tinfo->{'skip'}= 1;

=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl	2011-11-30 10:37:28 +0000
+++ b/mysql-test/mysql-test-run.pl	2012-01-24 12:53:57 +0000
@@ -986,7 +986,7 @@ sub command_line_setup {
              'skip-test=s'              => \&collect_option,
              'do-test=s'                => \&collect_option,
              'start-from=s'             => \&collect_option,
-             'big-test'                 => \$opt_big_test,
+             'big-test+'                => \$opt_big_test,
 	     'combination=s'            => \@opt_combinations,
              'skip-combinations'        => \&collect_option,
              'experimental=s'           => \@opt_experimentals,
@@ -5984,7 +5984,8 @@ Options to control what test suites or c
                         list of suite names.
                         The default is: "$DEFAULT_SUITES"
   skip-rpl              Skip the replication test cases.
-  big-test              Also run tests marked as "big"
+  big-test              Also run tests marked as "big". Repeat this option
+                        twice to run only "big" tests.
   staging-run           Run a limited number of tests (no slow tests). Used
                         for running staging trees with valgrind.
   enable-disabled       Run also tests marked as disabled



More information about the commits mailing list