platform_build_soong/android
Colin Cross cec8171420 Add integration testing infrastructure
Fix mutator registration for tests to allow different tests
in the same package to register different mutators.

Allow tests to track the resulting ModuleBuildParams objects
to use in assertions, and provide helpers for getting them.
For example:
    config := android.TestConfig(buildDir)
    ctx := android.NewTestContext()
    ctx.RegisterModuleType(...)
    ctx.MockFileSystem(...)
    ctx.ParseBlueprintsFile("Android.bp")
    ctx.PrepareBuildActions(config)
    ctx.Register()
    // Get the Inputs value passed to the javac rule for the foo module
    inputs := ctx.ModuleForTests("foo".Rule("javac").Inputs

Test: java_test.go
Change-Id: I10c82967f5f3586d2c176f169906b571ed82fc73
2017-07-14 14:19:51 -07:00
..
androidmk.go Supported python build in host side. 2017-05-05 13:27:56 -07:00
api_levels.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
arch.go Refactor factories 2017-06-30 21:08:36 +00:00
config.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
defaults.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
defs.go Fix the issue "\n" didn't get interpreted properly. 2017-05-16 15:10:29 -07:00
env.go Revert "Revert "Ensure environment dependencies are correct"" 2017-05-15 15:22:45 -07:00
expand.go genrule: expand $$ to $$ 2016-11-22 15:41:08 -08:00
expand_test.go genrule: expand $$ to $$ 2016-11-22 15:41:08 -08:00
hooks.go Replace PropertyCustomizer with hooks 2016-09-13 17:37:32 -07:00
makevars.go Move registration into android package 2016-10-12 14:30:44 -07:00
module.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
mutator.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
onceper.go Add DeviceConfig and OncePer objects 2016-08-17 16:39:06 -07:00
package_ctx.go Clarify paths.go somewhat 2017-05-15 11:31:48 -07:00
paths.go Fix install location for vendor tests 2017-07-06 18:09:46 -07:00
paths_test.go Fix install location for vendor tests 2017-07-06 18:09:46 -07:00
prebuilt.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
prebuilt_test.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
register.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
testing.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
util.go Move globbing to Blueprint 2016-11-04 04:54:16 +00:00
variable.go add device_kernel_headers module for vendor-specific kernel headers 2017-07-08 09:29:04 +09:00
variable_test.go Support %s in product variable properties 2017-05-05 18:22:30 -07:00