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 17package { 18 default_team: "trendy_team_android_kernel", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_defaults { 23 name: "gsi_boot_defaults", 24 shared_libs: [ 25 "libbase", 26 "libcutils", 27 "libhardware", 28 "libhidlbase", 29 "liblog", 30 "libutils", 31 ], 32 static_libs: [ 33 "libext4_utils", 34 "libfstab", 35 "[email protected]", 36 ], 37 srcs: [ 38 "boot_tests.cpp", 39 ], 40} 41 42cc_test { 43 name: "gsi_boot_test", 44 defaults: ["gsi_boot_defaults"], 45} 46 47cc_test { 48 name: "vts_gsi_boot_test", 49 defaults: ["gsi_boot_defaults"], 50 test_suites: [ 51 "general-tests", 52 "vts", 53 ], 54 auto_gen_config: true, 55 test_options: { 56 min_shipping_api_level: 29, 57 }, 58 require_root: true, 59} 60 61java_library_host { 62 name: "DsuTestBase", 63 srcs: [ 64 "DsuTestBase.java", 65 ], 66 libs: [ 67 "tradefed", 68 ], 69 visibility: [ 70 "//visibility:private", 71 ], 72} 73 74java_test_host { 75 name: "DSUEndtoEndTest", 76 srcs: ["DSUEndtoEndTest.java"], 77 static_libs: [ 78 "DsuTestBase", 79 ], 80 libs: ["tradefed"], 81 test_config: "dsu-test.xml", 82 test_suites: ["general-tests"], 83} 84 85java_test_host { 86 name: "DsuGsiIntegrationTest", 87 srcs: [ 88 "DsuGsiIntegrationTest.java", 89 ], 90 static_libs: [ 91 "DsuTestBase", 92 ], 93 libs: [ 94 "tradefed", 95 ], 96 test_config: "dsu_gsi_integration_test.xml", 97 test_suites: [ 98 "general-tests", 99 ], 100} 101 102java_test_host { 103 name: "DsuGsiToolTest", 104 srcs: [ 105 "DsuGsiToolTest.java", 106 ], 107 static_libs: [ 108 "DsuTestBase", 109 ], 110 libs: [ 111 "tradefed", 112 ], 113 test_config: "dsu_gsi_tool_test.xml", 114 test_suites: [ 115 "general-tests", 116 ], 117} 118