Commit 6f15a8e4 authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Monty

Don't run test "forever" with mysql-test-run --valgrind

Test times when using --valgrind are now 4 hours and server start/shutdown
time 180 seconds.
The whole test suite time is caped at 1 day instead of 7 days

Reviewer: Monty
parent 9d261eec
......@@ -45,6 +45,7 @@ my %debuggers = (
script => 'set args {args} < {input}',
},
ddd => {
interactive => 1,
options => '--command {script} {exe}',
script => 'set args {args} < {input}',
},
......@@ -53,9 +54,11 @@ my %debuggers = (
options => '-c "stop in main; run {exe} {args} < {input}"',
},
devenv => {
interactive => 1,
options => '/debugexe {exe} {args}',
},
windbg => {
interactive => 1,
options => '{exe} {args}',
},
lldb => {
......@@ -190,11 +193,15 @@ sub fix_options(@) {
sub pre_setup() {
my $used;
my $interactive;
for my $k (keys %debuggers) {
for my $opt ($k, "manual-$k", "boot-$k", "client-$k") {
if ($opt_vals{$opt})
{
$used = 1;
$interactive ||= ($debuggers{$k}->{interactive} ||
$debuggers{$k}->{term} ||
($opt =~ /^manual-/));
if ($debuggers{$k}->{pre}) {
$debuggers{$k}->{pre}->();
delete $debuggers{$k}->{pre};
......@@ -209,10 +216,10 @@ sub pre_setup() {
$::opt_retry= 1;
$::opt_retry_failure= 1;
$::opt_testcase_timeout= 7 * 24 * 60; # in minutes
$::opt_suite_timeout= 7 * 24 * 60; # in minutes
$::opt_shutdown_timeout= 24 * 60 *60; # in seconds
$::opt_start_timeout= 24 * 60 * 60; # in seconds
$::opt_testcase_timeout= ($interactive ? 24 : 4) * 60; # in minutes
$::opt_suite_timeout= 24 * 60; # in minutes
$::opt_shutdown_timeout= ($interactive ? 24 * 60 : 3) * 60; # in seconds
$::opt_start_timeout= $::opt_shutdown_timeout; # in seconds
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment