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