This commit is contained in:
cltbld%netscape.com 2003-01-07 00:33:31 +00:00
Родитель 8ae1fa8c46
Коммит d7073daa75
2 изменённых файлов: 34 добавлений и 17 удалений

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

@ -22,7 +22,7 @@ use File::Path; # for rmtree();
use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
$::UtilsVersion = '$Revision: 1.208 $ ';
$::UtilsVersion = '$Revision: 1.209 $ ';
package TinderUtils;
@ -841,7 +841,7 @@ sub BuildIt {
rebootSystem() if $Settings::OS eq 'WIN98' && $Settings::RebootSystem;
$exit_early++ if $Settings::TestOnly and $build_status ne 'success';
$exit_early++ if $Settings::TestOnly and ($build_status ne 'success');
$exit_early++ if $Settings::BuildOnce;
}
}
@ -1958,27 +1958,40 @@ sub QATest {
run_system_cmd("sync; sleep 5", 35);
my $rv;
#$rv = FileBasedTest($test_name, $build_dir, $binary_dir,
# [@$args, $url], $Settings::QATestTimeout,
# "FAILED_XXX", # No failure here, post-process the data.
# 0,
# 1); # Timeout ok
$rv = AliveTest("QATest", $build_dir,
[@$args, $url],
$Settings::QATestTimeout);
##### short-cut, just read the file to test this.
#$rv = AliveTest("QATest_raw", $build_dir,
# [@$args, $url],
# $Settings::QATestTimeout);
#
# XXXX testing. -mcafee
$rv = 'success';
# Post-process log of test output.
open QATEST, "perl $build_dir/../qatest.pl $build_dir/QATest.log|"
my $mode = "express";
open QATEST, "perl $build_dir/../qatest.pl $build_dir/QATest_raw.log $mode |"
or die "Unable to run qatest.pl";
my $qatest_html = "";
while (<QATEST>) {
print_log $_;
chomp;
#$_ =~ s/\"/&quot;/g; #### it doesn't like this line
# $_ =~ s/\012//g;
### $_ =~ s/\s+\S/ /g; # compress whitespace.
$qatest_html .= $_;
}
close QATEST;
print_log "\n";
# Ok I have the data here, how do I show it?
print_log "TinderboxPrint: <a href=\"http://www.nytimes.com\")>A</A>\n";
# This works.
#$qatest_html = "<table border=2 cellspacing=0><tr%20valign=top><td>&nbsp;</td><td>Passed</td><td>Failed</td><td>Total</td><td>Died</td><td>%&nbsp;Passed</td><td>%&nbsp;Failed</td></tr><tr%20valign=top><td>DHTML</a></td><td>9</td><td>0</td><td>9</td><td>0</td><td>100</td><td>0</td></tr><tr%20valign=top><td>DOM&nbsp;VIEWS</a></td><td>2</td><td>0</td><td>2</td><td>0</td><td>100</td><td>0</td></tr><tr%20valign=top><td>Total:</td><td>11</td><td>0</td><td>11</td><td>0</td><td>100</td><td>0</td></tr></table>";
# Testing output
open TEST_OUTPUT, ">qatest_out.log";
print TEST_OUTPUT $qatest_html;
close TEST_OUTPUT;
print_log "TinderboxPrint:<a href=\"javascript:var&nbsp;newwin;newwin=window.open(&quot;&quot;,&quot;&quot;,&quot;menubar=no,resizable=yes,height=150,width=500&quot;);var&nbsp;newdoc=newwin.document;newdoc.write('$qatest_html');newdoc.close();\">QA</a>\n";
return $rv; # Hard-coded for now.
}

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

@ -239,7 +239,11 @@ END_PRINT
$curSuite = $File{'SuiteList'}->[$var];
$HTMLreport .= "<tr valign=top>\n";
$HTMLreport .= "<td BGCOLOR=#CCCCCC><a href=\"#$curSuite->{'Name'}\">$curSuite->{'Title'}</a></td>\n";
if($express) {
$HTMLreport .= "<td>$curSuite->{'Title'}</td>\n";
} else {
$HTMLreport .= "<td bgcolor=#cccccc><a href=\"#$curSuite->{'Name'}\">$curSuite->{'Title'}</a></td>\n";
}
$HTMLreport .= "<td>$File{'SuiteList'}->[$var]->{'tcsPass'}</td>\n";
$HTMLreport .= "<td>$File{'SuiteList'}->[$var]->{'tcsFail'}</td>\n";
$HTMLreport .= "<td>$File{'SuiteList'}->[$var]->{'tcsTotal'}</td>\n";
@ -259,7 +263,7 @@ END_PRINT
$HTMLreport .= <<END_PRINT;
<tr valign=top bgcolor=#FFFFCC>
<td bgcolor=#CCCCCC id="totalHeader" class="tableHeader">Total:</td>
<td>Total:</td>
<td>$File{'tcsPass'}</td>
<td>$File{'tcsFail'}</td>
<td>$File{'tcsTotal'}</td>