summaryrefslogtreecommitdiff
path: root/tests/autotest-report.pl
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-10 17:52:08 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-10 17:52:08 +0000
commit6e1777619e4b668fdbb5952cd1863283cf539e7c (patch)
tree882f547274c52215ae1a07760c0beba02012d3aa /tests/autotest-report.pl
parentc74fe071ddd114898a274ade279288dcfaf26e93 (diff)
tests: Autotest now targets several architectures on MacOS, minor report refactoring
git-svn-id: http://pugixml.googlecode.com/svn/trunk@509 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/autotest-report.pl')
-rw-r--r--tests/autotest-report.pl23
1 files changed, 15 insertions, 8 deletions
diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl
index 151355b..b685314 100644
--- a/tests/autotest-report.pl
+++ b/tests/autotest-report.pl
@@ -1,6 +1,17 @@
#!/usr/bin/perl
# pretty-printing
+sub prettysuffix
+{
+ my $suffix = shift;
+
+ return " C++0x" if ($suffix eq '_0x');
+ return " x64" if ($suffix eq '_x64');
+ return " PowerPC" if ($suffix eq '_ppc');
+
+ return "";
+}
+
sub prettytoolset
{
my $toolset = shift;
@@ -10,15 +21,11 @@ sub prettytoolset
return "Digital Mars C++ 8.51" if ($toolset eq 'dmc');
return "Sun C++ 5.10" if ($toolset eq 'suncc');
- return "Intel C++ Compiler $1.0" if ($toolset =~ /^ic(\d+)$/);
- return "Intel C++ Compiler $1.0 x64" if ($toolset =~ /^ic(\d+)_x64$/);
- return "MinGW (GCC $1.$2)" if ($toolset =~ /^mingw(\d)(\d)$/);
- return "MinGW (GCC $1.$2) C++0x" if ($toolset =~ /^mingw(\d)(\d)_0x$/);
- return "MinGW (GCC $1.$2) x64" if ($toolset =~ /^mingw(\d)(\d)_x64$/);
+ return "Intel C++ Compiler $1.0" . prettysuffix($2) if ($toolset =~ /^ic(\d+)(.*)$/);
+ return "MinGW (GCC $1.$2)" . prettysuffix($3) if ($toolset =~ /^mingw(\d)(\d)(.*)$/);
return "Microsoft Visual C++ 7.1" if ($toolset eq 'msvc71');
- return "Microsoft Visual C++ $1.0" if ($toolset =~ /^msvc(\d+)$/);
- return "Microsoft Visual C++ $1.0 x64" if ($toolset =~ /^msvc(\d+)_x64$/);
- return "GNU C++ Compiler $1" if ($toolset =~ /^gcc(.*)$/);
+ return "Microsoft Visual C++ $1.0" . prettysuffix($2) if ($toolset =~ /^msvc(\d+)(.*)$/);
+ return "GNU C++ Compiler $1" . prettysuffix($2) if ($toolset =~ /^gcc([\d.]*)(.*)$/);
$toolset;
}