xref: /aosp_15_r20/system/gsid/tests/Android.bp (revision 4e2b41f188908a2ae9d9a2089f1f10779d080021)
1*4e2b41f1SAndroid Build Coastguard Worker//
2*4e2b41f1SAndroid Build Coastguard Worker// Copyright (C) 2019 The Android Open Source Project
3*4e2b41f1SAndroid Build Coastguard Worker//
4*4e2b41f1SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*4e2b41f1SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*4e2b41f1SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*4e2b41f1SAndroid Build Coastguard Worker//
8*4e2b41f1SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*4e2b41f1SAndroid Build Coastguard Worker//
10*4e2b41f1SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*4e2b41f1SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*4e2b41f1SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*4e2b41f1SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*4e2b41f1SAndroid Build Coastguard Worker// limitations under the License.
15*4e2b41f1SAndroid Build Coastguard Worker//
16*4e2b41f1SAndroid Build Coastguard Worker
17*4e2b41f1SAndroid Build Coastguard Workerpackage {
18*4e2b41f1SAndroid Build Coastguard Worker    default_team: "trendy_team_android_kernel",
19*4e2b41f1SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
20*4e2b41f1SAndroid Build Coastguard Worker}
21*4e2b41f1SAndroid Build Coastguard Worker
22*4e2b41f1SAndroid Build Coastguard Workercc_defaults {
23*4e2b41f1SAndroid Build Coastguard Worker    name: "gsi_boot_defaults",
24*4e2b41f1SAndroid Build Coastguard Worker    shared_libs: [
25*4e2b41f1SAndroid Build Coastguard Worker        "libbase",
26*4e2b41f1SAndroid Build Coastguard Worker        "libcutils",
27*4e2b41f1SAndroid Build Coastguard Worker        "libhardware",
28*4e2b41f1SAndroid Build Coastguard Worker        "libhidlbase",
29*4e2b41f1SAndroid Build Coastguard Worker        "liblog",
30*4e2b41f1SAndroid Build Coastguard Worker        "libutils",
31*4e2b41f1SAndroid Build Coastguard Worker    ],
32*4e2b41f1SAndroid Build Coastguard Worker    static_libs: [
33*4e2b41f1SAndroid Build Coastguard Worker        "libext4_utils",
34*4e2b41f1SAndroid Build Coastguard Worker        "libfstab",
35*4e2b41f1SAndroid Build Coastguard Worker        "[email protected]",
36*4e2b41f1SAndroid Build Coastguard Worker    ],
37*4e2b41f1SAndroid Build Coastguard Worker    srcs: [
38*4e2b41f1SAndroid Build Coastguard Worker        "boot_tests.cpp",
39*4e2b41f1SAndroid Build Coastguard Worker    ],
40*4e2b41f1SAndroid Build Coastguard Worker}
41*4e2b41f1SAndroid Build Coastguard Worker
42*4e2b41f1SAndroid Build Coastguard Workercc_test {
43*4e2b41f1SAndroid Build Coastguard Worker    name: "gsi_boot_test",
44*4e2b41f1SAndroid Build Coastguard Worker    defaults: ["gsi_boot_defaults"],
45*4e2b41f1SAndroid Build Coastguard Worker}
46*4e2b41f1SAndroid Build Coastguard Worker
47*4e2b41f1SAndroid Build Coastguard Workercc_test {
48*4e2b41f1SAndroid Build Coastguard Worker    name: "vts_gsi_boot_test",
49*4e2b41f1SAndroid Build Coastguard Worker    defaults: ["gsi_boot_defaults"],
50*4e2b41f1SAndroid Build Coastguard Worker    test_suites: [
51*4e2b41f1SAndroid Build Coastguard Worker        "general-tests",
52*4e2b41f1SAndroid Build Coastguard Worker        "vts",
53*4e2b41f1SAndroid Build Coastguard Worker    ],
54*4e2b41f1SAndroid Build Coastguard Worker    auto_gen_config: true,
55*4e2b41f1SAndroid Build Coastguard Worker    test_options: {
56*4e2b41f1SAndroid Build Coastguard Worker        min_shipping_api_level: 29,
57*4e2b41f1SAndroid Build Coastguard Worker    },
58*4e2b41f1SAndroid Build Coastguard Worker    require_root: true,
59*4e2b41f1SAndroid Build Coastguard Worker}
60*4e2b41f1SAndroid Build Coastguard Worker
61*4e2b41f1SAndroid Build Coastguard Workerjava_library_host {
62*4e2b41f1SAndroid Build Coastguard Worker    name: "DsuTestBase",
63*4e2b41f1SAndroid Build Coastguard Worker    srcs: [
64*4e2b41f1SAndroid Build Coastguard Worker        "DsuTestBase.java",
65*4e2b41f1SAndroid Build Coastguard Worker    ],
66*4e2b41f1SAndroid Build Coastguard Worker    libs: [
67*4e2b41f1SAndroid Build Coastguard Worker        "tradefed",
68*4e2b41f1SAndroid Build Coastguard Worker    ],
69*4e2b41f1SAndroid Build Coastguard Worker    visibility: [
70*4e2b41f1SAndroid Build Coastguard Worker        "//visibility:private",
71*4e2b41f1SAndroid Build Coastguard Worker    ],
72*4e2b41f1SAndroid Build Coastguard Worker}
73*4e2b41f1SAndroid Build Coastguard Worker
74*4e2b41f1SAndroid Build Coastguard Workerjava_test_host {
75*4e2b41f1SAndroid Build Coastguard Worker    name: "DSUEndtoEndTest",
76*4e2b41f1SAndroid Build Coastguard Worker    srcs: ["DSUEndtoEndTest.java"],
77*4e2b41f1SAndroid Build Coastguard Worker    static_libs: [
78*4e2b41f1SAndroid Build Coastguard Worker        "DsuTestBase",
79*4e2b41f1SAndroid Build Coastguard Worker    ],
80*4e2b41f1SAndroid Build Coastguard Worker    libs: ["tradefed"],
81*4e2b41f1SAndroid Build Coastguard Worker    test_config: "dsu-test.xml",
82*4e2b41f1SAndroid Build Coastguard Worker    test_suites: ["general-tests"],
83*4e2b41f1SAndroid Build Coastguard Worker}
84*4e2b41f1SAndroid Build Coastguard Worker
85*4e2b41f1SAndroid Build Coastguard Workerjava_test_host {
86*4e2b41f1SAndroid Build Coastguard Worker    name: "DsuGsiIntegrationTest",
87*4e2b41f1SAndroid Build Coastguard Worker    srcs: [
88*4e2b41f1SAndroid Build Coastguard Worker        "DsuGsiIntegrationTest.java",
89*4e2b41f1SAndroid Build Coastguard Worker    ],
90*4e2b41f1SAndroid Build Coastguard Worker    static_libs: [
91*4e2b41f1SAndroid Build Coastguard Worker        "DsuTestBase",
92*4e2b41f1SAndroid Build Coastguard Worker    ],
93*4e2b41f1SAndroid Build Coastguard Worker    libs: [
94*4e2b41f1SAndroid Build Coastguard Worker        "tradefed",
95*4e2b41f1SAndroid Build Coastguard Worker    ],
96*4e2b41f1SAndroid Build Coastguard Worker    test_config: "dsu_gsi_integration_test.xml",
97*4e2b41f1SAndroid Build Coastguard Worker    test_suites: [
98*4e2b41f1SAndroid Build Coastguard Worker        "general-tests",
99*4e2b41f1SAndroid Build Coastguard Worker    ],
100*4e2b41f1SAndroid Build Coastguard Worker}
101*4e2b41f1SAndroid Build Coastguard Worker
102*4e2b41f1SAndroid Build Coastguard Workerjava_test_host {
103*4e2b41f1SAndroid Build Coastguard Worker    name: "DsuGsiToolTest",
104*4e2b41f1SAndroid Build Coastguard Worker    srcs: [
105*4e2b41f1SAndroid Build Coastguard Worker        "DsuGsiToolTest.java",
106*4e2b41f1SAndroid Build Coastguard Worker    ],
107*4e2b41f1SAndroid Build Coastguard Worker    static_libs: [
108*4e2b41f1SAndroid Build Coastguard Worker        "DsuTestBase",
109*4e2b41f1SAndroid Build Coastguard Worker    ],
110*4e2b41f1SAndroid Build Coastguard Worker    libs: [
111*4e2b41f1SAndroid Build Coastguard Worker        "tradefed",
112*4e2b41f1SAndroid Build Coastguard Worker    ],
113*4e2b41f1SAndroid Build Coastguard Worker    test_config: "dsu_gsi_tool_test.xml",
114*4e2b41f1SAndroid Build Coastguard Worker    test_suites: [
115*4e2b41f1SAndroid Build Coastguard Worker        "general-tests",
116*4e2b41f1SAndroid Build Coastguard Worker    ],
117*4e2b41f1SAndroid Build Coastguard Worker}
118