Make coverage work without test defs.

Change-Id: I946df038e97dc5c2f40a4610d4076e13ab6bde37
This commit is contained in:
Brett Chabot
2012-09-19 07:35:35 -07:00
parent 91615e7f5a
commit 8ac51186a6
9 changed files with 296 additions and 99 deletions

View File

@@ -115,6 +115,10 @@ class AndroidMK(object):
"""
return identifier in self._includes
def IncludesMakefilesUnder(self):
"""Check if makefile has a 'include makefiles under here' rule"""
return self.HasInclude('call all-makefiles-under,$(LOCAL_PATH)')
def HasJavaLibrary(self, library_name):
"""Check if library is specified as a local java library in makefile.
@@ -168,4 +172,4 @@ def CreateAndroidMK(path, filename=AndroidMK.FILENAME):
mk._ParseMK(mk_path)
return mk
else:
return None
return None