From c622ce6fed61e07125c7d764f84fc70bb73c6c78 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 2 Jun 2010 06:25:40 +0000 Subject: tests: Redesigned test building; now all configurations of a single toolset are built in a single jam run git-svn-id: http://pugixml.googlecode.com/svn/trunk@493 99668b35-9821-0410-8761-19e4c4f06640 --- tests/autotest-report.pl | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'tests/autotest-report.pl') diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl index 71c840d..47fed38 100644 --- a/tests/autotest-report.pl +++ b/tests/autotest-report.pl @@ -58,18 +58,29 @@ sub insertindex while (<>) { ### autotest i386-freebsd-64int gcc release [wchar] result 0 97.78 98.85 - if (/^### autotest (\S+) (\S+) (\S+) \[(.*?)\] result (\S+) (\S*) (\S*)/) + if (/^### autotest (\S+) (\S+) (\S+) \[(.*?)\] (.*)/) { - my ($platform, $toolset, $configuration, $defineset, $result, $coverage_pugixml, $coverage_pugixpath) = ($1, $2, $3, $4, $5, $6, $7); - - die "Detected duplicate build information $_\n" if defined $results{"$toolset $platform"}{$configuration}{$defineset}; + my ($platform, $toolset, $configuration, $defineset, $info) = ($1, $2, $3, $4, $5); my $fulltool = &prettyplatform($platform) . ' ' . &prettytoolset($toolset); my $fullconf = "$configuration $defineset"; - $results{$fulltool}{$fullconf}{result} = $result; - $results{$fulltool}{$fullconf}{coverage_pugixml} = $coverage_pugixml; - $results{$fulltool}{$fullconf}{coverage_pugixpath} = $coverage_pugixpath; + if ($info =~ /^prepare/) + { + $results{$fulltool}{$fullconf}{result} = 1; + } + elsif ($info =~ /^success/) + { + $results{$fulltool}{$fullconf}{result} = 0; + } + elsif ($info =~ /^coverage (\S+) (\S+)/) + { + $results{$fulltool}{$fullconf}{"coverage_$1"} = $2; + } + else + { + print STDERR "Unrecognized autotest infoline $_"; + } &insertindex(\%toolsets, $fulltool); -- cgit v1.2.3