common/tools/brag/yarpToBRAG.pl
author Brendan Donegan <brendand@symbian.org>
Wed, 17 Mar 2010 11:57:22 +0000
changeset 934 a4f43b5e3c81
parent 753 5069de517698
permissions -rw-r--r--
Changes from v800008
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     1
#!perl -w
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     2
#
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     3
# Copyright (c) 2009 Symbian Foundation Ltd
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     4
# This component and the accompanying materials are made available
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     6
# which accompanies this distribution, and is available
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     8
#
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     9
# Initial Contributors:
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    10
# Symbian Foundation Ltd - initial contribution.
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    11
#
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    12
# Contributors:
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    13
#
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    14
# Description:
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    15
# Generate the BRAG-compatible XML summary of the Raptor log from Yarp analysis
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    16
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    17
use strict;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    18
654
b64b5a0f8662 Added lib dir to pick up Text::CSV when it's not included with the installed perl distribution.
Simon Howkins <simonh@symbian.org>
parents: 650
diff changeset
    19
use FindBin;
b64b5a0f8662 Added lib dir to pick up Text::CSV when it's not included with the installed perl distribution.
Simon Howkins <simonh@symbian.org>
parents: 650
diff changeset
    20
use lib "$FindBin::Bin/../lib";
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    21
use lib "$FindBin::Bin";
654
b64b5a0f8662 Added lib dir to pick up Text::CSV when it's not included with the installed perl distribution.
Simon Howkins <simonh@symbian.org>
parents: 650
diff changeset
    22
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    23
use Getopt::Long;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    24
use Text::CSV;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    25
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    26
use ToBrag;
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    27
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    28
if (!@ARGV)
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    29
{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    30
	warn "Generate an XML summary of the Raptor build from a Yarp CSV file\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    31
	warn "Eg: yarpToBRAG.pl aYarpFile.csv [*_yarp.csv ...]\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    32
	exit(1);
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    33
}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    34
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    35
# Start to build structure to be output as XML (same format as XML::Parser would create for us)
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    36
my $buildStatus = ToBrag::createBuildStatus();
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    37
# Obtain a phase object
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
    38
my $buildPhase = ToBrag::ensurePhase($buildStatus, "Build");
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    39
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    40
@ARGV = map { glob $_ } @ARGV;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    41
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    42
foreach my $yarpCSV (@ARGV)
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    43
{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    44
	# Read Yarp CSV File
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    45
	unless (open(CSV, $yarpCSV))
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    46
	{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    47
		warn "ERROR: Unable to open $yarpCSV to process. Skipping.\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    48
		next;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    49
	}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    50
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    51
	my $csv = Text::CSV->new();
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    52
	my @keys = ();
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    53
	while (my $line = <CSV>)
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    54
	{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    55
		chomp $line;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    56
		
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    57
		unless ($csv->parse($line))
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    58
		{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    59
			my $err = $csv->error_input();
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    60
			warn "WARNING: Failed to parse $yarpCSV line $. as CSV '$line': $err  Skipping\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    61
			next;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    62
		}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    63
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    64
		if (!@keys)
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    65
		{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    66
			@keys = $csv->fields();
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    67
			next;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    68
		}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    69
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    70
		my @values = $csv->fields();
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    71
		last unless $values[0];
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    72
		unless (scalar @values == scalar @keys)
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    73
		{
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    74
			warn "WARNING: line does not match expected format at $yarpCSV line $.. Skipping\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    75
			next;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    76
		}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    77
		# Populate the hash using a hash slice
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    78
		my $failure = {};
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    79
		@{$failure}{@keys} = @values;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    80
		$failure->{platform} = lc $failure->{platform};
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    81
		
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    82
		# Work out the package
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    83
		$failure->{package} = $failure->{bldinf};
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    84
		$failure->{package} =~ s{[A-Z]:}{}i;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    85
		$failure->{package} =~ s{^(/sf/.*?/.*?)/.*}{$1}i;
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    86
		
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    87
		# Create a more readable error message
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    88
		my %errorIdToDetail = (
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    89
			tem => {message => "Failed to process $failure->{source}", severity => "major"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    90
			msvctoolscompile => {message => "Failed to compile $failure->{source}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    91
			compile => {message => "Failed to compile $failure->{source}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    92
			compile2object => {message => "Failed to compile $failure->{source}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    93
			win32compile2object => {message => "Failed to compile $failure->{source}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    94
			tools2lib => {message => "Failed to build library $failure->{target}", severity => "minor"},
650
b4c5f01c1ab7 Added understanding of the "ar" failure.
Simon Howkins <simonh@symbian.org>
parents: 649
diff changeset
    95
			ar => {message => "Failed to build library $failure->{target}", severity => "minor"},
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    96
			win32archive => {message => "Failed to build library $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    97
			"link" => {message => "Failed to create symbols for $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    98
			postlink => {message => "Failed to link $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    99
			win32stageonelink => {message => "Failed to link $failure->{target} (stage 1)", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   100
			win32stagetwolink => {message => "Failed to link $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   101
			win32simplelink => {message => "Failed to link $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   102
			win32processexports => {message => "Failed to export $failure->{source} to $failure->{target}", severity => "minor"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   103
			tracecompile => {message => "Trace compile failure for $failure->{target}", severity => "unknown"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   104
			extension_makefile => {message => "Failed to process an extension makefile connected to $failure->{bldinf}", severity => "major"},
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   105
		);
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   106
#		die $failure->{name} unless exists $errorIdToDetail{$failure->{name}};
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   107
		my $message = $errorIdToDetail{$failure->{name}}->{message} || "Unknown failure tag '$failure->{name}' ($failure->{source} -> $failure->{target})";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   108
		$failure->{severity} = $errorIdToDetail{$failure->{name}}->{severity} || "unknown";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   109
		
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   110
		# Obtain a matching step
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   111
		my $step = ToBrag::ensureStep($buildPhase, $failure->{platform});
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   112
		# Also create empty <failures> tags with severities in a sensible order
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   113
		ToBrag::ensureFailureSet($step, "critical");
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   114
		ToBrag::ensureFailureSet($step, "major");
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   115
		ToBrag::ensureFailureSet($step, "minor");
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   116
		
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   117
		# Obtain a set of failures which matches this severity
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   118
		my $failureSet = ToBrag::ensureFailureSet($step, $failure->{severity});
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   119
		
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   120
		# Now create the failure itself, and add it to this failure set
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   121
		my $failureItem = bless {
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   122
#			href => "",
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   123
			"package" => $failure->{package},
753
5069de517698 New script which parses raptor logs directly to produce a BRAG summary.
Simon Howkins <simonh@symbian.org>
parents: 752
diff changeset
   124
			Kids => [ bless { Kids => [ bless { Text => $message }, "Characters" ]}, "effect"],
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   125
		}, "failure";
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   126
		push @{$failureSet->{Kids}}, $failureItem, $ToBrag::xmlNewline;
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   127
	}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   128
	close(CSV);
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   129
}
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   130
# Print XML
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   131
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   132
print "<?xml-stylesheet type='text/xsl' href='brag.xsl'?>\n";
752
1f07674ec99f Moved common code to shared module.
Simon Howkins <simonh@symbian.org>
parents: 654
diff changeset
   133
ToBrag::printTree($buildStatus->[0]);
649
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   134
print "\n";
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   135
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   136
exit(0);
4468add5d834 Added post-processing of YARP analysis to feed into BRAG status.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   137