Below is the list of changes that have just been committed into a local
5.0 repository of matthias. When matthias 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
1.1928 05/08/26 11:58:16 mleich@stripped +1 -0
Merge mleich@stripped:/home/bk/mysql-5.0
into three.local.lan:/home/matthias/Arbeit/mysql-5.0/src-C
mysql-test/mysql-test-run.pl
1.36 05/08/26 11:56:04 matthias@stripped +0 -0
Auto merged
# 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: mleich
# Host: three.local.lan
# Root: /home/matthias/Arbeit/mysql-5.0/src-C/RESYNC
--- 1.35/mysql-test/mysql-test-run.pl 2005-08-23 17:03:27 +02:00
+++ 1.36/mysql-test/mysql-test-run.pl 2005-08-26 11:56:04 +02:00
@@ -90,6 +90,7 @@
require "lib/mtr_cases.pl";
require "lib/mtr_process.pl";
+require "lib/mtr_timer.pl";
require "lib/mtr_io.pl";
require "lib/mtr_gcov.pl";
require "lib/mtr_gprof.pl";
@@ -137,6 +138,7 @@
our $glob_mysql_bench_dir= undef;
our $glob_hostname= undef;
our $glob_scriptname= undef;
+our $glob_timers= undef;
our $glob_use_running_server= 0;
our $glob_use_running_ndbcluster= 0;
our $glob_use_embedded_server= 0;
@@ -232,8 +234,10 @@
our $opt_sleep;
our $opt_ps_protocol;
-our $opt_sleep_time_after_restart= 1;
+our $opt_sleep_time_after_restart= 1;
our $opt_sleep_time_for_delete= 10;
+our $opt_testcase_timeout= 5; # 5 min max
+our $opt_suite_timeout= 120; # 2 hours max
our $opt_socket;
@@ -436,6 +440,8 @@
$path_my_basedir=
$opt_source_dist ? $glob_mysql_test_dir : $glob_basedir;
+
+ $glob_timers= mtr_init_timers();
}
@@ -531,6 +537,8 @@
'vardir=s' => \$opt_vardir,
'verbose' => \$opt_verbose,
'wait-timeout=i' => \$opt_wait_timeout,
+ 'testcase-timeout=i' => \$opt_testcase_timeout,
+ 'suite-timeout=i' => \$opt_suite_timeout,
'warnings|log-warnings' => \$opt_warnings,
'with-openssl' => \$opt_with_openssl,
@@ -1195,6 +1203,8 @@
mtr_report("Finding Tests in the '$suite' suite");
+ mtr_timer_start($glob_timers,"suite", 60 * $opt_suite_timeout);
+
my $tests= collect_test_cases($suite);
mtr_report("Starting Tests in the '$suite' suite");
@@ -1203,7 +1213,9 @@
foreach my $tinfo ( @$tests )
{
+ mtr_timer_start($glob_timers,"testcase", 60 * $opt_testcase_timeout);
run_testcase($tinfo);
+ mtr_timer_stop($glob_timers,"testcase");
}
mtr_print_line();
@@ -1224,6 +1236,8 @@
}
mtr_report_stats($tests);
+
+ mtr_timer_stop($glob_timers,"suite");
}
@@ -1521,6 +1535,11 @@
# Testcase itself tell us to skip this one
mtr_report_test_skipped($tinfo);
}
+ elsif ( $res == 63 )
+ {
+ $tinfo->{'timeout'}= 1; # Mark as timeout
+ report_failure_and_restart($tinfo);
+ }
else
{
# Test case failed, if in control mysqltest returns 1
@@ -1656,8 +1675,6 @@
my $extra_opt= shift;
my $slave_master_info= shift;
-# print STDERR Dumper($extra_opt);
-
my $sidx= ""; # Index as string, 0 is empty string
if ( $idx > 0 )
{
@@ -2027,6 +2044,7 @@
my $tinfo= shift;
my $cmdline_mysqldump= "$exe_mysqldump --no-defaults -uroot " .
+ "--port=$master->[0]->{'path_myport'} " .
"--socket=$master->[0]->{'path_mysock'} --password=";
if ( $opt_debug )
{
@@ -2035,6 +2053,7 @@
}
my $cmdline_mysqlshow= "$exe_mysqlshow -uroot " .
+ "--port=$master->[0]->{'path_myport'} " .
"--socket=$master->[0]->{'path_mysock'} --password=";
if ( $opt_debug )
{
@@ -2263,6 +2282,10 @@
help Get this help text
unified-diff | udiff When presenting differences, use unified diff
+ testcase-timeout=MINUTES Max test case run time (default 5)
+ suite-timeout=MINUTES Max test suite run time (default 120)
+
+
Options not yet described, or that I want to look into more
big-test
@@ -2282,4 +2305,5 @@
HERE
mtr_exit(1);
+
}
| Thread |
|---|
| • bk commit into 5.0 tree (mleich:1.1928) | mleich | 26 Aug |