Changes for QA/JS test. Backed sleep times from 10s to 5s. -mcafee

This commit is contained in:
cltbld%netscape.com 2002-12-26 22:44:55 +00:00
Родитель 8f0f8f4f97
Коммит 0e1744b541
2 изменённых файлов: 29 добавлений и 23 удалений

Просмотреть файл

@ -22,7 +22,7 @@ use File::Path; # for rmtree();
use Config; # for $Config{sig_name} and $Config{sig_num} use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find (); use File::Find ();
$::UtilsVersion = '$Revision: 1.205 $ '; $::UtilsVersion = '$Revision: 1.206 $ ';
package TinderUtils; package TinderUtils;
@ -1676,11 +1676,12 @@ sub run_all_tests {
} }
# QA test: Client-side JS, DOM/HTML/Views, form submission. # QA test: Client-side JS, DOM/HTML/Views, form submission.
#if ($Settings::QATest and $test_result eq 'success') { if ($Settings::QATest and $test_result eq 'success') {
# $test_result = QATest("QATest", $test_result = QATest("QATest",
# $build_dir, $build_dir,
# [$binary, "-P", $Settings::MozProfileName]); $binary_dir,
#} [$binary, "-P", $Settings::MozProfileName]);
}
# xul window open test. # xul window open test.
@ -1691,7 +1692,7 @@ sub run_all_tests {
my $binary_log = "$build_dir/$test_name.log"; my $binary_log = "$build_dir/$test_name.log";
# Settle OS. # Settle OS.
run_system_cmd("sync; sleep 10", 35); run_system_cmd("sync; sleep 5", 35);
my @urlargs = (-chrome,"file:$build_dir/mozilla/xpfe/test/winopen.xul"); my @urlargs = (-chrome,"file:$build_dir/mozilla/xpfe/test/winopen.xul");
if($test_result eq 'success') { if($test_result eq 'success') {
@ -1847,13 +1848,14 @@ sub FileBasedTest {
print_logfile($binary_log, $test_name); print_logfile($binary_log, $test_name);
if (($result->{timed_out}) and (!$timeout_is_ok)) { if (($result->{timed_out}) and (!$timeout_is_ok)) {
print_log "Error: $test_name timed out after $timeout_secs seconds.\n"; print_log "Error: $test_name timed out after $timeout_secs seconds.\n";
return 'testfailed'; return 'testfailed';
} elsif ($result->{exit_value} != 0) { } elsif ($result->{exit_value} != 0) {
print_test_errors($result, $test_name); print_log "Error: $test_name exited with status $result->{exit_value}\n";
return 'testfailed'; print_test_errors($result, $test_name);
return 'testfailed';
} else { } else {
print_log "$test_name exited normally\n"; print_log "$test_name exited normally\n";
} }
my $found_token = file_has_token($binary_log, $status_token); my $found_token = file_has_token($binary_log, $status_token);
@ -1882,7 +1884,7 @@ sub LayoutPerformanceTest {
my $url = "http://$Settings::pageload_server/page-loader/loader.pl?delay=1000&nocache=0&maxcyc=4&timeout=$Settings::LayoutPerformanceTestPageTimeout&auto=1"; my $url = "http://$Settings::pageload_server/page-loader/loader.pl?delay=1000&nocache=0&maxcyc=4&timeout=$Settings::LayoutPerformanceTestPageTimeout&auto=1";
# Settle OS. # Settle OS.
run_system_cmd("sync; sleep 10", 35); run_system_cmd("sync; sleep 5", 35);
$layout_time = AliveTestReturnToken($test_name, $layout_time = AliveTestReturnToken($test_name,
$build_dir, $build_dir,
@ -1948,25 +1950,29 @@ sub LayoutPerformanceTest {
# Client-side JavaScript, DOM Core/HTML/Views, and Form Submission tests. # Client-side JavaScript, DOM Core/HTML/Views, and Form Submission tests.
# Currently only available inside netscape firewall. # Currently only available inside netscape firewall.
sub QATest { sub QATest {
my ($test_name, $build_dir, $args) = @_; my ($test_name, $build_dir, $binary_dir, $args) = @_;
my $binary_log = "$build_dir/$test_name.log"; my $binary_log = "$build_dir/$test_name.log";
my $url = "http://geckoqa.mcom.com/ngdriver/cgi-bin/ngdriver.cgi?findsuites=suites&tbox=1"; my $url = "http://geckoqa.mcom.com/ngdriver/cgi-bin/ngdriver.cgi?findsuites=suites&tbox=1";
# Settle OS. # Settle OS.
run_system_cmd("sync; sleep 10", 35); run_system_cmd("sync; sleep 5", 35);
my $rv; my $rv;
$rv = FileBasedTest($test_name, #$rv = FileBasedTest($test_name, $build_dir, $binary_dir,
$build_dir, # [@$args, $url], $Settings::QATestTimeout,
[@$args, $url], # "FAILED_XXX", # No failure here, post-process the data.
$Settings::QATestTimeout, # 0,
"FAILED_XXX", # No failure here, post-process the data. # 1); # Timeout ok
0, 0); # Timeout means failure
$rv = AliveTest("QATest", $build_dir,
[@$args, $url],
$Settings::QATestTimeout);
# Post-process log of test output. # Post-process log of test output.
return 'success'; # Hard-coded for now. return $rv; # Hard-coded for now.
} }

Просмотреть файл

@ -58,7 +58,7 @@ $XpcomGlueTestTimeout = 15;
$CodesizeTestTimeout = 900; # seconds $CodesizeTestTimeout = 900; # seconds
$CodesizeTestType = "auto"; # {"auto"|"base"} $CodesizeTestType = "auto"; # {"auto"|"base"}
$LayoutPerformanceTestTimeout = 1200; # entire test, seconds $LayoutPerformanceTestTimeout = 1200; # entire test, seconds
$QATestTimeout = 1200; # entire test, seconds $QATestTimeout = 60; # entire test, seconds
$LayoutPerformanceTestPageTimeout = 30000; # each page, ms $LayoutPerformanceTestPageTimeout = 30000; # each page, ms
$StartupPerformanceTestTimeout = 60; # seconds $StartupPerformanceTestTimeout = 60; # seconds
$XULWindowOpenTestTimeout = 150; # seconds $XULWindowOpenTestTimeout = 150; # seconds