1// Copyright (C) 2021 The Android Open Source Project 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. 14 15package { 16 default_team: "trendy_team_android_kernel", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_test { 21 name: "vts_dlkm_partition_test", 22 require_root: true, 23 test_suites: [ 24 "general-tests", 25 "vts", 26 ], 27 28 srcs: [ 29 "vts_dlkm_partition_test.cpp", 30 ], 31 defaults: [ 32 "libvintf_static_user_defaults", 33 ], 34 shared_libs: [ 35 "libcrypto", 36 ], 37 static_libs: [ 38 "libbase", 39 "libcrypto_utils", 40 "libcutils", 41 "libext4_utils", 42 "libfs_mgr_binder", 43 "liblp", 44 "libutils", 45 "libvintf", 46 ], 47 cflags: [ 48 "-Wall", 49 "-Werror", 50 ], 51} 52 53cc_test { 54 name: "vts_eol_enforcement_test", 55 test_suites: [ 56 "device-tests", 57 "vts", 58 ], 59 srcs: [ 60 "eol_enforcement_test.cpp", 61 ], 62 defaults: [ 63 "libvintf_static_user_defaults", 64 ], 65 static_libs: [ 66 "libbase", 67 "libkver", 68 "libtinyxml2", 69 "libvintf", 70 ], 71 cflags: [ 72 "-Wall", 73 "-Werror", 74 ], 75 test_config: "eol_enforcement_test.xml", 76} 77 78cc_test { 79 name: "vts_generic_boot_image_test", 80 require_root: true, 81 82 // Even though 5.4-android11 also conforms with GKI release format, 83 // (often called "GKI 1.0"), 84 // skip the test on device launching with Android 11 (R) because: 85 // - We don't retroactively add requirements; 86 // - On those devices, VTS always flashes GKI before testing, making this 87 // test meaningless. 88 // Therefore, the test is enforced on device launching with Android 12 (S) 89 // and above. 90 test_options: { 91 min_shipping_api_level: 31, 92 }, 93 94 defaults: [ 95 "libvintf_static_user_defaults", 96 ], 97 srcs: [ 98 "cpio.cpp", 99 "generic_boot_image_test.cpp", 100 "lz4_legacy.cpp", 101 "ramdisk_utils.cpp", 102 ], 103 cflags: [ 104 "-Wall", 105 "-Werror", 106 ], 107 test_suites: [ 108 "general-tests", 109 110 // On 5.10+ kernel, the device should use the generic boot image as the 111 // shipping image. Hence, we can include this test in VTS. 112 "vts", 113 ], 114 static_libs: [ 115 "libbase", 116 "libgmock", 117 "libkver", 118 "liblz4", 119 "libvintf", 120 ], 121 header_libs: [ 122 "bootimg_headers", 123 "libstorage_literals_headers", 124 ], 125} 126 127filegroup { 128 name: "WtsDlkmPartitionTestCasesSrc", 129 srcs: ["vts_dlkm_partition_test.cpp"], 130} 131