blob: 8ab194d946875c15505b0f13fd0f52ef67ea2b62 [file] [log] [blame]
Weijia He32282f62024-11-05 22:21:04 +00001// Copyright 2024 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package tradefed_modules
16
17import (
18 "android/soong/android"
19)
20
21func init() {
22 RegisterTestSuiteBuildComponents(android.InitRegistrationContext)
23}
24
25func RegisterTestSuiteBuildComponents(ctx android.RegistrationContext) {
26 ctx.RegisterModuleType("test_suite", TestSuiteFactory)
27}
28
29var PrepareForTestWithTestSuiteBuildComponents = android.GroupFixturePreparers(
30 android.FixtureRegisterWithContext(RegisterTestSuiteBuildComponents),
31)
32
33type testSuiteProperties struct {
34 Description string
35 Tests []string `android:"path,arch_variant"`
36}
37
38type testSuiteModule struct {
39 android.ModuleBase
40 android.DefaultableModuleBase
41 testSuiteProperties
42}
43
44func (t *testSuiteModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
45 // TODO(hwj): Implement this.
46}
47
48func TestSuiteFactory() android.Module {
49 module := &testSuiteModule{}
50 module.AddProperties(&module.testSuiteProperties)
51
52 android.InitAndroidModule(module)
53 android.InitDefaultableModule(module)
54
55 return module
56}