2024-02-02 21:37:20 +01:00
|
|
|
package tradefed
|
|
|
|
|
|
|
|
import (
|
|
|
|
"android/soong/android"
|
|
|
|
|
|
|
|
"github.com/google/blueprint"
|
|
|
|
)
|
|
|
|
|
2024-06-02 16:07:02 +02:00
|
|
|
// Data that test_module_config[_host] modules types will need from
|
|
|
|
// their dependencies to write out build rules and AndroidMkEntries.
|
2024-02-02 21:37:20 +01:00
|
|
|
type BaseTestProviderData struct {
|
|
|
|
// data files and apps for android_test
|
|
|
|
InstalledFiles android.Paths
|
|
|
|
// apk for android_test
|
|
|
|
OutputFile android.Path
|
|
|
|
// Either handwritten or generated TF xml.
|
|
|
|
TestConfig android.Path
|
|
|
|
// Other modules we require to be installed to run tests. We expect base to build them.
|
|
|
|
HostRequiredModuleNames []string
|
2024-03-14 22:14:39 +01:00
|
|
|
RequiredModuleNames []string
|
|
|
|
// List of test suites base uses.
|
|
|
|
TestSuites []string
|
2024-06-02 16:07:02 +02:00
|
|
|
// True indicates the base modules is built for Host.
|
2024-03-14 22:14:39 +01:00
|
|
|
IsHost bool
|
2024-06-02 16:07:02 +02:00
|
|
|
// Base's sdk version for AndroidMkEntries, generally only used for Host modules.
|
|
|
|
LocalSdkVersion string
|
|
|
|
// Base's certificate for AndroidMkEntries, generally only used for device modules.
|
|
|
|
LocalCertificate string
|
|
|
|
// Indicates if the base module was a unit test.
|
|
|
|
IsUnitTest bool
|
2024-02-02 21:37:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var BaseTestProviderKey = blueprint.NewProvider[BaseTestProviderData]()
|