summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-07-10 18:28:50 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-07-10 18:28:50 +0000
commit21143a601c47ef30106aad75c8089cb5cf0acc05 (patch)
tree644dff55b3fca4404479dfc5abed0b8a6efa1ea1 /rust/testing.go
parented62b9cc2a24dd0874f8689902bad759a722497a (diff)
parentbbd25aeb428edaa7fb332cc0a6771aeede38e286 (diff)
Merge "Specify module dependency in the srcs list"
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index 3d583e197..430b40bfd 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -17,6 +17,7 @@ package rust
import (
"android/soong/android"
"android/soong/cc"
+ "android/soong/genrule"
)
func GatherRequiredDepsForTest() string {
@@ -77,6 +78,7 @@ func GatherRequiredDepsForTest() string {
func CreateTestContext() *android.TestContext {
ctx := android.NewTestArchContext()
cc.RegisterRequiredBuildComponentsForTest(ctx)
+ ctx.RegisterModuleType("genrule", genrule.GenRuleFactory)
ctx.RegisterModuleType("rust_binary", RustBinaryFactory)
ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory)
ctx.RegisterModuleType("rust_test", RustTestFactory)