diff options
author | Colin Cross <ccross@android.com> | 2015-03-19 14:05:33 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-03-19 14:05:33 -0700 |
commit | 6b29069d42c7084b948a1670230c2807014e41cc (patch) | |
tree | f03f57b60aac6f71d7f4a83028208aab21481589 /cmd | |
parent | ed9f868f494df2176e953ac825db7213a18a9f0d (diff) | |
download | build_soong-6b29069d42c7084b948a1670230c2807014e41cc.tar.gz build_soong-6b29069d42c7084b948a1670230c2807014e41cc.tar.bz2 build_soong-6b29069d42c7084b948a1670230c2807014e41cc.zip |
Allow cc_test to build a test per source file
Some cc_test modules want a test per source file, for example when
there is global state that needs to be reset between each test
suite, but no way to reset it. Allow them to specify test_per_src: true,
which will cause a separate test to be built for each source file.
Change-Id: I3dbf1202fb070437cb0109f195dc11a6440061ee
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/soong_build/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go index 8e2887c6..e8e33c6c 100644 --- a/cmd/soong_build/main.go +++ b/cmd/soong_build/main.go @@ -56,6 +56,7 @@ func main() { // Mutators ctx.RegisterEarlyMutator("arch", common.ArchMutator) ctx.RegisterEarlyMutator("link", cc.LinkageMutator) + ctx.RegisterEarlyMutator("test_per_src", cc.TestPerSrcMutator) // Singletons ctx.RegisterSingletonType("checkbuild", common.CheckbuildSingleton) |