blob: f9e9da06aaa1852e5e23a82ac97bdb66763511f1 [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.
14package tradefed_modules
15
16import (
17 "android/soong/android"
18 "android/soong/java"
19 "testing"
20)
21
22func TestTestSuites(t *testing.T) {
23 t.Parallel()
24 android.GroupFixturePreparers(
25 java.PrepareForTestWithJavaDefaultModules,
26 android.FixtureRegisterWithContext(RegisterTestSuiteBuildComponents),
27 ).RunTestWithBp(t, `
28 android_test {
29 name: "TestModule1",
30 sdk_version: "current",
31 }
32
33 android_test {
34 name: "TestModule2",
35 sdk_version: "current",
36 }
37
38 test_suite {
39 name: "my-suite",
40 description: "a test suite",
41 tests: [
42 "TestModule1",
43 "TestModule2",
44 ]
45 }
46 `)
47}