1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_defaults {
18    name: "gsi_boot_defaults",
19    shared_libs: [
20        "libbase",
21        "libcutils",
22        "libhardware",
23        "libhidlbase",
24        "liblog",
25        "libutils",
26    ],
27    static_libs: [
28        "libext4_utils",
29        "libfstab",
30        "android.hardware.weaver@1.0",
31    ],
32    srcs: [
33        "boot_tests.cpp",
34    ],
35}
36
37cc_test {
38    name: "gsi_boot_test",
39    defaults: ["gsi_boot_defaults"],
40}
41
42cc_test {
43    name: "vts_gsi_boot_test",
44    defaults: ["gsi_boot_defaults"],
45    test_suites: [
46        "general-tests",
47        "vts",
48    ],
49    auto_gen_config: true,
50    test_min_api_level: 29,
51    require_root: true,
52}
53
54java_test_host {
55    name: "DSUEndtoEndTest",
56    srcs: ["DSUEndtoEndTest.java"],
57    libs: ["tradefed"],
58    test_config: "dsu-test.xml",
59    test_suites: ["general-tests"],
60}
61
62android_test {
63    name: "LockScreenAutomation",
64    srcs: ["LockScreenAutomation.java"],
65    libs: ["junit", "android.test.base.stubs"],
66    static_libs: ["androidx.test.uiautomator"],
67    certificate: "platform",
68    manifest: "AndroidManifest.xml",
69    test_suites: ["general-tests"],
70}
71