summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2017-07-13 14:43:27 -0700
committer Colin Cross <ccross@android.com> 2017-07-14 14:19:51 -0700
commitcec8171420763a7a33f210be7bd45e22d3b38831 (patch)
tree090551693ef9bac520e6977cef72404d27153966 /python/python.go
parenteb54da6ebe8b0baf285be7d107c4cf959c3c462e (diff)
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
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions