diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 19:04:20 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 19:04:20 +0000 |
commit | 529762d46b03e5d62e30f5a903402df1488b9b00 (patch) | |
tree | a7be9f5f0be9b0e2ee904e29355cf1441c748ae8 | |
parent | 61a94d6223a422abae0396c931c11517ba05774b (diff) |
tests: Adjusted autotest report formatter for increased configuration count
git-svn-id: http://pugixml.googlecode.com/svn/trunk@705 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r-- | tests/autotest-report.pl | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl index 58f0d84..c450e49 100644 --- a/tests/autotest-report.pl +++ b/tests/autotest-report.pl @@ -57,6 +57,14 @@ sub prettyplatform $platform; } +sub prettybox +{ + my $enabled = shift; + my $color = $enabled ? "#cccccc" : "#ffffff"; + + "<td bgcolor='$color' align='center'>" . ($enabled ? "+" : " ") . "</td>"; +} + # parse build log %results = (); %toolsets = (); @@ -135,8 +143,8 @@ print <<END; END # print configuration header (release/debug) -print "<tr><td align='right' colspan=2>configuration</td>"; -print "<td>".(split /\s+/)[0]."</td>" foreach (@configurationarray); +print "<tr><td align='right' colspan=2>optimization</td>"; +print &prettybox((split /\s+/)[0] eq 'release') foreach (@configurationarray); print "</tr>\n"; # print defines header (one row for each define) @@ -147,8 +155,8 @@ foreach $define (sort {$a cmp $b} keys %defines) foreach (@configurationarray) { my $present = ($_ =~ /\b$define\b/); - my $color = $present ? "#cccccc" : "#ffffff"; - print "<td bgcolor='$color' align='center'>" . ($present ? "+" : " ") . "</td>"; + + print &prettybox($present); } print "</tr>\n"; } @@ -157,7 +165,7 @@ foreach $define (sort {$a cmp $b} keys %defines) foreach $tool (@toolsetarray) { my ($platform, $toolset) = split(/\s+/, $tool, 2); - print "<tr><td style='border-right: none' align='center'><small>$platform</small></td><td style='border-left: none'>$toolset</td>"; + print "<tr><td style='border-right: none' align='center'><small>$platform</small></td><td style='border-left: none'><nobr>$toolset</nobr></td>"; foreach (@configurationarray) { |