Add support for android_test modules

android_test module are APKs that can be run as tests, either
as standalone unit tests or as instrumentation tests for another
APK.

Test: m checkbuild
Change-Id: I16661701637e4048fd99442029c3e195ebf373a4
This commit is contained in:
Colin Cross
2018-05-22 11:11:52 -07:00
parent e467f44f9b
commit ae5caf554c
5 changed files with 188 additions and 17 deletions

View File

@@ -212,8 +212,8 @@ type CompilerDeviceProperties struct {
}
Optimize struct {
// If false, disable all optimization. Defaults to true for apps, false for
// libraries and tests.
// If false, disable all optimization. Defaults to true for android_app and android_test
// modules, false for java_library and java_test modules.
Enabled *bool
// If true, optimize for size by removing unused code. Defaults to true for apps,