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: "vts_security_avb_defaults", 24 srcs: [ 25 "gsi_validation_utils.cpp", 26 ], 27 static_libs: [ 28 "libavb_user", 29 "libavb", 30 "libbase", 31 "libcrypto_static", 32 "libfs_avb", 33 "libfs_mgr", 34 "liblog", 35 ], 36 shared_libs: [ 37 "libandroidfw", 38 "libutils", 39 ], 40 header_libs: [ 41 "libstorage_literals_headers", 42 ], 43 data: [ 44 ":q-gsi_avbpubkey", 45 ":r-gsi_avbpubkey", 46 ":s-gsi_avbpubkey", 47 ":t-gsi_avbpubkey", 48 ":qcar-gsi_avbpubkey", 49 ":gki-oem-2024_avbpubkey", 50 ":ogki_avbpubkeys", 51 ], 52 cflags: [ 53 "-Wall", 54 "-Werror", 55 ], 56} 57 58cc_test { 59 name: "vts_security_avb_test", 60 defaults: ["vts_security_avb_defaults"], 61 srcs: [ 62 "VtsSecurityAvbTest.cpp", 63 ], 64 test_config: "vts_security_avb_test.xml", 65 test_suites: [ 66 "device-tests", 67 "vts", 68 ], 69} 70 71cc_test { 72 name: "vts_gki_compliance_test", 73 defaults: [ 74 "vts_security_avb_defaults", 75 "libvintf_static_user_defaults", 76 ], 77 srcs: [ 78 "vts_gki_compliance_test.cpp", 79 "kernel_version_test.cpp", 80 "kernel_version_matrix.proto", 81 "ogki_builds_utils.cpp", 82 ], 83 static_libs: [ 84 "libgmock", 85 "libkver", 86 "libtinyxml2", 87 "libvintf", 88 "libvts_vintf_test_common", 89 ], 90 proto: { 91 type: "full", 92 }, 93 header_libs: [ 94 "bootimg_headers", 95 ], 96 test_suites: [ 97 "device-tests", 98 "vts", 99 ], 100 data: [ 101 ":kernel_version_matrix.textproto", 102 ], 103 104 require_root: true, 105} 106 107cc_test { 108 name: "vts_built_with_ddk_test", 109 require_root: true, 110 test_options: { 111 vsr_min_shipping_api_level: 202504, 112 }, 113 test_suites: [ 114 "vts", 115 ], 116 srcs: [ 117 "vts_built_with_ddk_test.cpp", 118 ], 119 data: [ 120 ":kernel-modules.xml", 121 ], 122 defaults: [ 123 "libvintf_static_user_defaults", 124 ], 125 static_libs: [ 126 "libbase", 127 "libcrypto_static", 128 "libelf64", 129 "libgtest", 130 "liblz4", 131 "libtinyxml2", 132 "libvintf", 133 "vts_boot_test_utils_lib", 134 ], 135 cflags: [ 136 "-Wall", 137 "-Werror", 138 ], 139} 140 141filegroup { 142 name: "gsi_validation_utils_cpp", 143 srcs: ["gsi_validation_utils.cpp"], 144} 145 146filegroup { 147 name: "vts_gki_compliance_test_cpp", 148 srcs: [ 149 "vts_gki_compliance_test.cpp", 150 "ogki_builds_utils.cpp", 151 ], 152} 153