From 529762d46b03e5d62e30f5a903402df1488b9b00 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 19:04:20 +0000 Subject: tests: Adjusted autotest report formatter for increased configuration count git-svn-id: http://pugixml.googlecode.com/svn/trunk@705 99668b35-9821-0410-8761-19e4c4f06640 --- tests/autotest-report.pl | 18 +++++++++++++----- 1 file 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"; + + "" . ($enabled ? "+" : " ") . ""; +} + # parse build log %results = (); %toolsets = (); @@ -135,8 +143,8 @@ print <configuration"; -print "".(split /\s+/)[0]."" foreach (@configurationarray); +print "optimization"; +print &prettybox((split /\s+/)[0] eq 'release') foreach (@configurationarray); print "\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 "" . ($present ? "+" : " ") . ""; + + print &prettybox($present); } print "\n"; } @@ -157,7 +165,7 @@ foreach $define (sort {$a cmp $b} keys %defines) foreach $tool (@toolsetarray) { my ($platform, $toolset) = split(/\s+/, $tool, 2); - print "$platform$toolset"; + print "$platform$toolset"; foreach (@configurationarray) { -- cgit v1.2.3