aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-07-13 14:43:27 -0700
committerColin Cross <ccross@android.com>2017-07-14 14:19:51 -0700
commitcec8171420763a7a33f210be7bd45e22d3b38831 (patch)
tree090551693ef9bac520e6977cef72404d27153966 /Android.bp
parenteb54da6ebe8b0baf285be7d107c4cf959c3c462e (diff)
downloadbuild_soong-cec8171420763a7a33f210be7bd45e22d3b38831.tar.gz
build_soong-cec8171420763a7a33f210be7bd45e22d3b38831.tar.bz2
build_soong-cec8171420763a7a33f210be7bd45e22d3b38831.zip
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 'Android.bp')
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 496dcd28..250c969e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -51,6 +51,7 @@ bootstrap_go_package {
"android/paths.go",
"android/prebuilt.go",
"android/register.go",
+ "android/testing.go",
"android/util.go",
"android/variable.go",