# HG changeset patch # User Dario Sestito # Date 1265655462 0 # Node ID 6ae47dc5d70735ef5e87f097b3c22ffea31e7272 # Parent 82070405cb6e0c32357e9a214001ce64f1b842ec Make BRAG point to the results of UH parser instead of intermediate artifacts diff -r 82070405cb6e -r 6ae47dc5d707 common/build.postbuild.xml --- a/common/build.postbuild.xml Fri Feb 05 15:59:33 2010 +0000 +++ b/common/build.postbuild.xml Mon Feb 08 18:57:42 2010 +0000 @@ -422,10 +422,10 @@ - - - - + + + + diff -r 82070405cb6e -r 6ae47dc5d707 common/tools/brag/brag.xsl --- a/common/tools/brag/brag.xsl Fri Feb 05 15:59:33 2010 +0000 +++ b/common/tools/brag/brag.xsl Mon Feb 08 18:57:42 2010 +0000 @@ -13,10 +13,10 @@

Build Status

- - - - + + + +

Overall BRAGG staus: @@ -35,7 +35,7 @@ Major Minor Unknown - Grand total + Grand total

Breakdown by phase/step

@@ -47,12 +47,27 @@ + + + Step: + + Step: + + Failures: + + + + Number: + + Number: + + @@ -60,48 +75,9 @@ - - -

Breakdown by package

- - - - - - - - - - -
PackageTotal failures
- -

Breakdown by package/severity

- - - - -

-
- - - - - - - - - -
SeverityCount
- - - -
-
-
-

Floating failures by phase/step/severity

-

No errors independent of package

+

No failures to show. Please also check the Raptor build summary for details on that part of the build

Phase:

@@ -126,39 +102,6 @@
-

Package failures by package/severity

- -

No errors specific to a package

-
- - - - -

-
- - - -
- () -
-
    - - -
  • - -
    (Too much text to show everything; lines not shown.) -
    - -
    -
    -
    -
-
-
-
-
- diff -r 82070405cb6e -r 6ae47dc5d707 common/tools/brag/uh2brag.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/brag/uh2brag.pl Mon Feb 08 18:57:42 2010 +0000 @@ -0,0 +1,74 @@ +#!perl -w +# +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# +# Contributors: +# +# Description: +# Generate a BRAG-compatible XML summary from an index.html file coming out of the uh parser + +use strict; + +use Getopt::Long; + +my $raptorSummary; +my $help = 0; +GetOptions(( + 'index=s' => \$raptorSummary, + 'help!' => \$help +)); + +$help = 1 if (!$raptorSummary); +if ($help) +{ + print "Generate an XML summary of the Raptor build from a summary.csv file\n"; + print "Usage: perl summarize.pl --index=INDEXFILE\n"; + exit(0); +} + +my $criticals = 0; +my $majors = 0; +my $minors = 0; +my $unknowns = 0; + +# READ INDEX.HTML FILE +if (open(INDEX, $raptorSummary)) +{ + while (my $line = ) + { + if ($line =~ m{.*(\d+)(\d+)(\d+)(\d+)}) + { + $criticals += $1 if ($1); + $majors += $2 if ($2); + $minors += $3 if ($3); + $unknowns += $4 if ($4); + } + } + close(INDEX); +} + +# Print XML +print <<_END; + + + + + + + + + + + + +_END + +exit(0); +