summaryrefslogtreecommitdiff
path: root/sh/sh_binary.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2025-03-11 15:55:59 -0700
committer Cole Faust <colefaust@google.com> 2025-03-11 15:55:59 -0700
commit5e1454aef7f1e97890b11db5c85b7655ce8f7380 (patch)
tree9feac0470368a38e98ebec8ec9a7475594353c0c /sh/sh_binary.go
parent7ed094ef25e59df953b422f011eaac8bb1c1eba1 (diff)
Expand TestSuiteInfoProvider to all test modules
Test suites have been historically only defined in the AndroidMk functions. But in soong-only builds, we don't run AndroidMk. It appears Colin already started making a TestSuiteInfo provider, but hadn't set it on all test modules yet. Expand it to all the test modules, and add export it to make so that make can check that it matches LOCAL_COMPATIBILITY_SUITES. Bug: 388850000 Test: m nothing Change-Id: Iee8959742117604fd560c95be60f3cb7cf3d9ae4
Diffstat (limited to 'sh/sh_binary.go')
-rw-r--r--sh/sh_binary.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go
index 894b17f25..7041642e0 100644
--- a/sh/sh_binary.go
+++ b/sh/sh_binary.go
@@ -574,6 +574,10 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
moduleInfoJSON.TestConfig = append(moduleInfoJSON.TestConfig, s.testConfig.String())
}
moduleInfoJSON.TestConfig = append(moduleInfoJSON.TestConfig, s.extraTestConfigs.Strings()...)
+
+ android.SetProvider(ctx, android.TestSuiteInfoProvider, android.TestSuiteInfo{
+ TestSuites: s.testProperties.Test_suites,
+ })
}
func addArch(archType string, paths android.Paths) []string {