Add more categories for recipe failures
authorDario Sestito <darios@symbian.org>
Thu, 04 Mar 2010 17:14:46 +0000
changeset 183 38468523076d
parent 182 20288e22722e
child 184 978ef35b4e5f
Add more categories for recipe failures
uh_parser/RaptorRecipe.pm
--- a/uh_parser/RaptorRecipe.pm	Thu Mar 04 16:35:52 2010 +0000
+++ b/uh_parser/RaptorRecipe.pm	Thu Mar 04 17:14:46 2010 +0000
@@ -60,6 +60,10 @@
 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
 my $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE = 'elf2e32_symbol_missing_from_elf_file';
 my $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED = 'mwccsym2_file_cannot_be_opened';
+my $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND = 'binsh_command_not_found';
+my $CATEGORY_RECIPEFAILURE_AS_ERROR = 'as_error';
+my $CATEGORY_RECIPEFAILURE_GPP_ERROR = 'g++_error';
+my $CATEGORY_RECIPEFAILURE_GPP_WARNING = 'g++_warning';
 
 my $mmp_with_issues = {};
 
@@ -130,6 +134,27 @@
 		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line);
 	}
+	elsif ($text =~ m,^\+.*/make.exe .*\n/bin/sh: .*: command not found,m)
+	{
+		$severity = $RaptorCommon::SEVERITY_CRITICAL;
+		my $subcategory = $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,^\+.*/arm-none-symbianelf-as\.exe .*^Error: .*,ms)
+	{
+		my $subcategory = $CATEGORY_RECIPEFAILURE_AS_ERROR;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ee]rror: .*,ms)
+	{
+		my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_ERROR;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ww]arning: .*,ms)
+	{
+		my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_WARNING;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line);
+	}
 	# the following captures generic armcc error/warnings, not captured by regexps above
 	elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,)
 	{