~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/test-run.pl

  • Committer: Stewart Smith
  • Date: 2009-04-07 10:38:15 UTC
  • mto: This revision was merged to the branch mainline in revision 980.
  • Revision ID: stewart@flamingspork.com-20090407103815-44maslg2utgm02o7
add repeat-test=n option to test-run.pl to repeat a test n times

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
our $opt_script_debug= 0;  # Script debugging, enable with --script-debug
131
131
our $opt_verbose= 0;  # Verbose output, enable with --verbose
132
132
 
 
133
our $opt_repeat_test= 1;
 
134
 
133
135
our $exe_master_mysqld;
134
136
our $exe_drizzle;
135
137
our $exe_drizzleadmin;
562
564
             'testcase-timeout=i'       => \$opt_testcase_timeout,
563
565
             'suite-timeout=i'          => \$opt_suite_timeout,
564
566
             'warnings|log-warnings'    => \$opt_warnings,
 
567
             'repeat-test=i'            => \$opt_repeat_test,
565
568
 
566
569
             # Options which are no longer used
567
570
             (map { $_ => \&warn_about_removed_option } @removed_options),
1881
1884
 
1882
1885
  foreach my $tinfo ( @$tests )
1883
1886
  {
1884
 
    if (run_testcase_check_skip_test($tinfo))
 
1887
    foreach(1..$opt_repeat_test)
1885
1888
    {
1886
 
      next;
 
1889
      if (run_testcase_check_skip_test($tinfo))
 
1890
        {
 
1891
          next;
 
1892
        }
 
1893
 
 
1894
      mtr_timer_start($glob_timers,"testcase", 60 * $opt_testcase_timeout);
 
1895
      run_testcase($tinfo);
 
1896
      mtr_timer_stop($glob_timers,"testcase");
1887
1897
    }
1888
 
 
1889
 
    mtr_timer_start($glob_timers,"testcase", 60 * $opt_testcase_timeout);
1890
 
    run_testcase($tinfo);
1891
 
    mtr_timer_stop($glob_timers,"testcase");
1892
1898
  }
1893
1899
 
1894
1900
  mtr_print_line();
3489
3495
  combination="ARG1 .. ARG2" Specify a set of "mysqld" arguments for one
3490
3496
                        combination.
3491
3497
  skip-combination      Skip any combination options and combinations files
 
3498
  repeat-test=n         How many times to repeat each test (default: 1)
3492
3499
 
3493
3500
Options that specify ports
3494
3501