Add more categories for unreciped and raptor error failures
authorDario Sestito <darios@symbian.org>
Mon, 08 Mar 2010 17:19:08 +0000
changeset 184 978ef35b4e5f
parent 183 38468523076d
child 185 b76adfbc6648
Add more categories for unreciped and raptor error failures
uh_parser/RaptorError.pm
uh_parser/RaptorUnreciped.pm
--- a/uh_parser/RaptorError.pm	Thu Mar 04 17:14:46 2010 +0000
+++ b/uh_parser/RaptorError.pm	Mon Mar 08 17:19:08 2010 +0000
@@ -48,6 +48,8 @@
 my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version';
 my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config';
 my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given';
+my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file';
+my $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE = 'missing_bld_inf_file';
 
 sub process
 {
@@ -99,6 +101,26 @@
 		$subcategory = $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
 	}
+	elsif ($text =~ m,Could not export .* to .* : \[Errno 2\] No such file or directory: .*,)
+	{
+		$severity = $RaptorCommon::SEVERITY_MAJOR;
+		$subcategory = $CATEGORY_RAPTORERROR_COULDNOTEXPORT;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,win32/mingw/bin/cpp\.exe: .*bld\.inf:.*bld\.inf: No such file or directory,)
+	{
+		$severity = $RaptorCommon::SEVERITY_MAJOR;
+		$subcategory = $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,^Preprocessor exception: ''Errors in .*bld\.inf'' : in command,)
+	{
+		# don't dump
+	}
+	elsif ($text =~ m,Source of export does not exist: .*,)
+	{
+		# don't dump
+	}
 	else # log everything by default
 	{
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
--- a/uh_parser/RaptorUnreciped.pm	Thu Mar 04 17:14:46 2010 +0000
+++ b/uh_parser/RaptorUnreciped.pm	Mon Mar 08 17:19:08 2010 +0000
@@ -49,6 +49,7 @@
 my $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET = 'overriding_commands_for_target';
 my $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS = 'make_target_not_remade_because_of_errors';
 my $CATEGORY_RAPTORUNRECIPED_MAKE_ERROR1 = 'make_error_1';
+my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGETNEEDEDBY = 'make_no_rule_to_make_target_needed_by';
 my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET = 'make_no_rule_to_make_target';
 
 sub process
@@ -73,9 +74,7 @@
 	}
 	elsif ($text =~ m,: warning: ignoring old commands for target,)
 	{
-		$severity = $RaptorCommon::SEVERITY_MINOR;
-		my $subcategory = $CATEGORY_RAPTORUNRECIPED_IGNORINGOLDCOMMANDSFORTARGET;
-		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
+		# don't dump
 	}
 	elsif ($text =~ m,: warning: overriding commands for target,)
 	{
@@ -98,6 +97,12 @@
 	elsif ($text =~ m,^make: \*\*\* No rule to make target .*\ needed by .*,)
 	{
 		$severity = $RaptorCommon::SEVERITY_MINOR;
+		my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGETNEEDEDBY;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
+	}
+	elsif ($text =~ m,^make: \*\*\* No rule to make target .*,)
+	{
+		$severity = $RaptorCommon::SEVERITY_MINOR;
 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
 	}
@@ -109,6 +114,18 @@
 	{
 		# don't dump
 	}
+	elsif ($text =~ m,win32/cygwin/bin/cp\.exe,)
+	{
+		# don't dump
+	}
+	elsif ($text =~ m,epoc32/tools/svgtbinencode\.exe,)
+	{
+		# don't dump
+	}
+	elsif ($text =~ m,win32/cygwin/bin/chmod\.exe a\+rw,)
+	{
+		# don't dump
+	}
 	else # log everything by default
 	{
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);