author | Simon Howkins <simonh@symbian.org> |
Mon, 08 Feb 2010 14:50:19 +0000 | |
changeset 891 | 6c56420d1006 |
parent 879 | e88616591730 |
permissions | -rw-r--r-- |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
1 |
# Copyright (c) 2009 Symbian Foundation Ltd |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
2 |
# This component and the accompanying materials are made available |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
3 |
# under the terms of the License "Eclipse Public License v1.0" |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
4 |
# which accompanies this distribution, and is available |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
5 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
6 |
# |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
7 |
# Initial Contributors: |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
8 |
# Symbian Foundation Ltd - initial contribution. |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
9 |
# |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
10 |
# Contributors: |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
11 |
# |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
12 |
# Description: |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
13 |
# Raptor parser module. |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
14 |
# Extract, analyzes and dumps raptor recipes i.e. content of <recipe> tags from a raptor log file |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
15 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
16 |
package RaptorRecipe; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
17 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
18 |
use strict; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
19 |
use RaptorCommon; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
20 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
21 |
our $reset_status = {}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
22 |
my $buildlog_status = {}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
23 |
my $buildlog_recipe_status = {}; |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
24 |
my $buildlog_recipe_status_status = {}; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
25 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
26 |
$reset_status->{name} = 'reset_status'; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
27 |
$reset_status->{next_status} = {buildlog=>$buildlog_status}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
28 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
29 |
$buildlog_status->{name} = 'buildlog_status'; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
30 |
$buildlog_status->{next_status} = {recipe=>$buildlog_recipe_status}; |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
31 |
$buildlog_status->{on_start} = 'RaptorRecipe::on_start_buildlog'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
32 |
$buildlog_status->{on_end} = 'RaptorRecipe::on_end_buildlog'; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
33 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
34 |
$buildlog_recipe_status->{name} = 'buildlog_recipe_status'; |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
35 |
$buildlog_recipe_status->{next_status} = {status=>$buildlog_recipe_status_status}; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
36 |
$buildlog_recipe_status->{on_start} = 'RaptorRecipe::on_start_buildlog_recipe'; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
37 |
$buildlog_recipe_status->{on_end} = 'RaptorRecipe::on_end_buildlog_recipe'; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
38 |
$buildlog_recipe_status->{on_chars} = 'RaptorRecipe::on_chars_buildlog_recipe'; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
39 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
40 |
$buildlog_recipe_status_status->{name} = 'buildlog_recipe_status_status'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
41 |
$buildlog_recipe_status_status->{next_status} = {}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
42 |
$buildlog_recipe_status_status->{on_start} = 'RaptorRecipe::on_start_buildlog_recipe_status'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
43 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
44 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
45 |
my $filename = ''; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
46 |
my $failure_item = 0; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
47 |
|
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
48 |
my $recipe_info = {}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
49 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
50 |
my $characters = ''; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
51 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
52 |
my $CATEGORY_RECIPEFAILURE = 'recipe_failure'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
53 |
my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
54 |
my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file'; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
55 |
my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file'; |
715
ee8b99c7aa0d
Add raptor recipe error category armar_file_does_not_exist
Dario Sestito <darios@symbian.org>
parents:
383
diff
changeset
|
56 |
my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist'; |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
57 |
my $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT = 'armcc_controlling_expression_is_constant'; |
728
41d71e272368
Add recipe-failure category armcc_internal_fault
Dario Sestito <darios@symbian.org>
parents:
723
diff
changeset
|
58 |
my $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT = 'armcc_internal_fault'; |
776
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
59 |
my $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED = 'armcc_modifier_not_allowed'; |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
60 |
my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors'; |
738
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
61 |
my $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE = 'elf2e32_symbol_missing_from_elf_file'; |
776
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
62 |
my $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED = 'mwccsym2_file_cannot_be_opened'; |
738
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
63 |
|
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
64 |
my $mmp_with_issues = {}; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
65 |
|
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
66 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
67 |
sub process |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
68 |
{ |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
69 |
my ($text, $config, $component, $mmp, $phase, $recipe, $file, $line) = @_; |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
70 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
71 |
my $category = $CATEGORY_RECIPEFAILURE; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
72 |
my $severity = ''; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
73 |
my $subcategory = ''; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
74 |
|
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
75 |
# if mmp is defined assign severity=MAJOR for the first failure |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
76 |
# then severity=MINOR to all other (for each logfile) |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
77 |
if ($mmp and defined $mmp_with_issues->{$::current_log_file}->{$mmp}) |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
78 |
{ |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
79 |
$severity = $RaptorCommon::SEVERITY_MINOR; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
80 |
} |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
81 |
elsif ($mmp) |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
82 |
{ |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
83 |
$mmp_with_issues->{$::current_log_file} = {} if (!defined $mmp_with_issues->{$::current_log_file}); |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
84 |
$mmp_with_issues->{$::current_log_file}->{$mmp} = 1; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
85 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
86 |
} |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
87 |
else |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
88 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
89 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
90 |
} |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
91 |
|
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
92 |
|
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
93 |
if ($text =~ m,Error: #5: cannot open source input file .*: No such file or directory,) |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
94 |
{ |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
95 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
96 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
97 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
98 |
elsif ($text =~ m,Fatal error: L6002U: Could not open file .*: No such file or directory,) |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
99 |
{ |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
100 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
101 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
102 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
103 |
elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
104 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
105 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
106 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
107 |
} |
738
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
108 |
elsif ($text =~ m,elf2e32 : Error: E1036: Symbol .* Missing from ELF File,) |
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
109 |
{ |
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
110 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
111 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
738
53abda826a9f
Add new raptor-analysis recipe-failure category: elf2e32_symbol_missing_from_elf_file
Dario Sestito <darios@symbian.org>
parents:
728
diff
changeset
|
112 |
} |
715
ee8b99c7aa0d
Add raptor recipe error category armar_file_does_not_exist
Dario Sestito <darios@symbian.org>
parents:
383
diff
changeset
|
113 |
elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
ee8b99c7aa0d
Add raptor recipe error category armar_file_does_not_exist
Dario Sestito <darios@symbian.org>
parents:
383
diff
changeset
|
114 |
{ |
ee8b99c7aa0d
Add raptor recipe error category armar_file_does_not_exist
Dario Sestito <darios@symbian.org>
parents:
383
diff
changeset
|
115 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
116 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
715
ee8b99c7aa0d
Add raptor recipe error category armar_file_does_not_exist
Dario Sestito <darios@symbian.org>
parents:
383
diff
changeset
|
117 |
} |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
118 |
elsif ($text =~ m,: Warning: #236-D: controlling expression is constant,) |
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
119 |
{ |
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
120 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
121 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
122 |
} |
728
41d71e272368
Add recipe-failure category armcc_internal_fault
Dario Sestito <darios@symbian.org>
parents:
723
diff
changeset
|
123 |
elsif ($text =~ m,/armcc.exe , and $text =~ m,Internal fault: ,) |
41d71e272368
Add recipe-failure category armcc_internal_fault
Dario Sestito <darios@symbian.org>
parents:
723
diff
changeset
|
124 |
{ |
41d71e272368
Add recipe-failure category armcc_internal_fault
Dario Sestito <darios@symbian.org>
parents:
723
diff
changeset
|
125 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
126 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
728
41d71e272368
Add recipe-failure category armcc_internal_fault
Dario Sestito <darios@symbian.org>
parents:
723
diff
changeset
|
127 |
} |
776
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
128 |
elsif ($text =~ m,/armcc.exe , and $text =~ m,Error: #655-D: the modifier ".*" is not allowed on this declaration,) |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
129 |
{ |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
130 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED; |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
131 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
132 |
} |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
133 |
# the following captures generic armcc error/warnings, not captured by regexps above |
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
134 |
elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,) |
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
135 |
{ |
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
136 |
my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS; |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
137 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
723
6b540cc85619
Add recipe-failure categories armcc_controlling_expression_is_constant and armcc_generic_warnings_errors
Dario Sestito <darios@symbian.org>
parents:
715
diff
changeset
|
138 |
} |
776
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
139 |
elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,) |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
140 |
{ |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
141 |
my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED; |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
142 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
789c8f6f86af
Add new recipe-error categories armcc_modifier_not_allowed, mwccsym2_file_cannot_be_opened
Dario Sestito <darios@symbian.org>
parents:
764
diff
changeset
|
143 |
} |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
144 |
else # log everything by default |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
145 |
{ |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
146 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
147 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
148 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
149 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
150 |
sub on_start_buildlog |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
151 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
152 |
#print FILE "line,layer,component,name,armlicence,platform,phase,code,bldinf,mmp,target,source,\n"; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
153 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
154 |
RaptorCommon::init(); |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
155 |
} |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
156 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
157 |
sub on_start_buildlog_recipe |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
158 |
{ |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
159 |
my ($el) = @_; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
160 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
161 |
#print "on_start_buildlog_recipe\n"; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
162 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
163 |
$recipe_info = {}; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
164 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
165 |
my $attributes = $el->{Attributes}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
166 |
for (keys %{$attributes}) |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
167 |
{ |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
168 |
$recipe_info->{$attributes->{$_}->{'LocalName'}} = $attributes->{$_}->{'Value'}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
169 |
#print "$_ -> $attributes->{$_}->{'Value'}\n"; |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
170 |
} |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
171 |
} |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
172 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
173 |
sub on_chars_buildlog_recipe |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
174 |
{ |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
175 |
my ($ch) = @_; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
176 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
177 |
#print "on_chars_buildlog_recipe\n"; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
178 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
179 |
$characters .= $ch->{Data}; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
180 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
181 |
#print "characters is now -->$characters<--\n"; |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
182 |
} |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
183 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
184 |
sub on_start_buildlog_recipe_status |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
185 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
186 |
my ($el) = @_; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
187 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
188 |
my $attributes = $el->{Attributes}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
189 |
for (keys %{$attributes}) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
190 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
191 |
if ($attributes->{$_}->{'LocalName'} eq 'code') |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
192 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
193 |
$recipe_info->{$attributes->{$_}->{'LocalName'}} = $attributes->{$_}->{'Value'}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
194 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
195 |
elsif ($attributes->{$_}->{'LocalName'} eq 'exit') |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
196 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
197 |
$recipe_info->{$attributes->{$_}->{'LocalName'}} = $attributes->{$_}->{'Value'}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
198 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
199 |
elsif ($attributes->{$_}->{'LocalName'} eq 'attempt') |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
200 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
201 |
$recipe_info->{$attributes->{$_}->{'LocalName'}} = $attributes->{$_}->{'Value'}; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
202 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
203 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
204 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
205 |
|
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
206 |
sub on_end_buildlog_recipe |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
207 |
{ |
879
e88616591730
Make index.html report on all packages, including the ones built successfully. Make the list of packages be alphabetically sorted
Dario Sestito <darios@symbian.org>
parents:
776
diff
changeset
|
208 |
$::allbldinfs->{$recipe_info->{bldinf}} = 1; |
e88616591730
Make index.html report on all packages, including the ones built successfully. Make the list of packages be alphabetically sorted
Dario Sestito <darios@symbian.org>
parents:
776
diff
changeset
|
209 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
210 |
if ($recipe_info->{exit} =~ /failed/) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
211 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
212 |
# normalize bldinf path |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
213 |
$recipe_info->{bldinf} = lc($recipe_info->{bldinf}); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
214 |
$recipe_info->{bldinf} =~ s,^[A-Za-z]:,,; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
215 |
$recipe_info->{bldinf} =~ s,[\\],/,g; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
216 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
217 |
my $package = ''; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
218 |
if ($recipe_info->{bldinf} =~ m,/((os|mw|app|tools|ostools|adaptation)/[^/]*),) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
219 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
220 |
$package = $1; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
221 |
$package =~ s,/,_,; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
222 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
223 |
else |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
224 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
225 |
print "WARNING: can't understand bldinf attribute of recipe: $recipe_info->{bldinf}. Won't dump to failed recipes file.\n"; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
226 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
227 |
|
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
228 |
# also normalize mmp path if this exists |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
229 |
if ($recipe_info->{mmp}) |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
230 |
{ |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
231 |
$recipe_info->{mmp} = lc($recipe_info->{mmp}); |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
232 |
$recipe_info->{mmp} =~ s,^[A-Za-z]:,,; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
233 |
$recipe_info->{mmp} =~ s,[\\],/,g; |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
234 |
} |
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
235 |
|
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
236 |
$characters =~ s,^[\r\n]*,,; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
237 |
$characters =~ s,[\r\n]*$,,; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
238 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
239 |
if ($package) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
240 |
{ |
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
241 |
$filename = "$::raptorbitsdir/$package.txt"; |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
242 |
if (!-f$filename) |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
243 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
244 |
print "Writing recipe file $filename\n"; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
245 |
open(FILE, ">$filename"); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
246 |
close(FILE); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
247 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
248 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
249 |
if ($failure_item == 0 and -f "$filename") |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
250 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
251 |
open(FILE, "$filename"); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
252 |
{ |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
253 |
local $/ = undef; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
254 |
my $filecontent = <FILE>; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
255 |
$failure_item = $1 if ($filecontent =~ m/.*---failure_item_(\d+)/s); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
256 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
257 |
close(FILE); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
258 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
259 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
260 |
$failure_item++; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
261 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
262 |
open(FILE, ">>$filename"); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
263 |
print FILE "---failure_item_$failure_item\---\n"; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
264 |
print FILE "$characters\n\n"; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
265 |
close(FILE); |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
266 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
267 |
|
764
d00048f1b036
Improved Raptor parser, now "uh"
Dario Sestito <darios@symbian.org>
parents:
738
diff
changeset
|
268 |
process($characters, $recipe_info->{config}, $recipe_info->{bldinf}, $recipe_info->{mmp}, $recipe_info->{phase}, $recipe_info->{name}, "$package.txt", $failure_item); |
383
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
269 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
270 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
271 |
$characters = ''; |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
272 |
} |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
273 |
|
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
274 |
sub on_end_buildlog |
52675b624b66
Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents:
242
diff
changeset
|
275 |
{ |
242
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
276 |
} |
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
277 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
278 |
|
51e429810aba
Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
279 |
1; |