summaryrefslogtreecommitdiff
path: root/tests/autotest-report.pl
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-13 15:16:52 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-13 15:16:52 +0000
commit1b5fa404db5c67454e9bf4fcf5b81cf924456374 (patch)
treeb35d54d48f29bba9c937818f3c1d04e4ae2d6b4f /tests/autotest-report.pl
parent436ad8765ebfa5dc12392de8d14167e88baef402 (diff)
tests: Minor autotest look improvements
git-svn-id: http://pugixml.googlecode.com/svn/trunk@421 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/autotest-report.pl')
-rw-r--r--tests/autotest-report.pl15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl
index 9265387..9ba3c04 100644
--- a/tests/autotest-report.pl
+++ b/tests/autotest-report.pl
@@ -25,8 +25,8 @@ sub prettyplatform
return "linux64" if ($platform =~ /64-linux/);
return "linux32" if ($platform =~ /86-linux/);
- return "freebsd64" if ($platform =~ /64-freebsd/);
- return "freebsd32" if ($platform =~ /86-freebsd/);
+ return "fbsd64" if ($platform =~ /64-freebsd/);
+ return "fbsd32" if ($platform =~ /86-freebsd/);
return "win64" if ($platform =~ /MSWin32-x64/);
return "win32" if ($platform =~ /MSWin32/);
@@ -78,10 +78,15 @@ $toolsetarray[$toolsets{$_}] = $_ foreach (keys %toolsets);
$configurationarray[$configurations{$_}] = $_ foreach (keys %configurations);
# print header
+$stylesheet = <<END;
+table.autotest { border: 1px solid; border-left: none; border-top: none; }
+table.autotest td { border: 1px solid; border-right: none; border-bottom: none; }
+END
+
print <<END;
-<html><head><title>pugixml autotest report</title></head><body>
+<html><head><title>pugixml autotest report</title><style type="text/css"><!-- $stylesheet --></style></head><body>
<h3>pugixml autotest report</h3>
-<table border=1 cellspacing=0 cellpadding=4>
+<table border=1 cellspacing=0 cellpadding=4 class="autotest">
END
# print configuration header (release/debug)
@@ -107,7 +112,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='right'><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'>$toolset</td>";
foreach (@configurationarray)
{