From 5e1454aef7f1e97890b11db5c85b7655ce8f7380 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 11 Mar 2025 15:55:59 -0700 Subject: 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 --- rust/test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/test.go') diff --git a/rust/test.go b/rust/test.go index 9cbc9f414..2fed0d62e 100644 --- a/rust/test.go +++ b/rust/test.go @@ -320,6 +320,10 @@ func (test *testDecorator) moduleInfoJSON(ctx ModuleContext, moduleInfoJSON *and } else { moduleInfoJSON.CompatibilitySuites = append(moduleInfoJSON.CompatibilitySuites, "null-suite") } + + android.SetProvider(ctx, android.TestSuiteInfoProvider, android.TestSuiteInfo{ + TestSuites: test.Properties.Test_suites, + }) } func rustTestHostMultilib(ctx android.LoadHookContext) { -- cgit v1.2.3-59-g8ed1b