44 my $CATEGORY_RAPTORERROR_CANNOTPROCESSSCHEMAVERSION = 'cannot_process_schema_version'; |
44 my $CATEGORY_RAPTORERROR_CANNOTPROCESSSCHEMAVERSION = 'cannot_process_schema_version'; |
45 my $CATEGORY_RAPTORERROR_NOBLDINFFOUND = 'no_bld_inf_found'; |
45 my $CATEGORY_RAPTORERROR_NOBLDINFFOUND = 'no_bld_inf_found'; |
46 my $CATEGORY_RAPTORERROR_CANTFINDMMPFILE = 'cant_find_mmp_file'; |
46 my $CATEGORY_RAPTORERROR_CANTFINDMMPFILE = 'cant_find_mmp_file'; |
47 my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors'; |
47 my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors'; |
48 my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version'; |
48 my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version'; |
|
49 my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config'; |
|
50 my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given'; |
49 |
51 |
50 sub process |
52 sub process |
51 { |
53 { |
52 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
54 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
53 |
55 |
81 } |
83 } |
82 elsif ($text =~ m,tool .* from config .* did not return version .* as required,) |
84 elsif ($text =~ m,tool .* from config .* did not return version .* as required,) |
83 { |
85 { |
84 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
86 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
85 $subcategory = $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION; |
87 $subcategory = $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION; |
|
88 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
|
89 } |
|
90 elsif ($text =~ m,Unknown build configuration '.*',) |
|
91 { |
|
92 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
93 $subcategory = $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG; |
|
94 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
|
95 } |
|
96 elsif ($text =~ m,No build configurations given,) |
|
97 { |
|
98 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
99 $subcategory = $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN; |
86 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
100 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
87 } |
101 } |
88 else # log everything by default |
102 else # log everything by default |
89 { |
103 { |
90 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
104 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |