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)
{