1// Build the unit tests for installd 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "frameworks_native_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["frameworks_native_license"], 9} 10 11cc_test { 12 name: "installd_utils_test", 13 test_suites: ["device-tests"], 14 clang: true, 15 srcs: ["installd_utils_test.cpp"], 16 cflags: [ 17 "-Wall", 18 "-Werror", 19 ], 20 shared_libs: [ 21 "libbase", 22 "libutils", 23 "libcutils", 24 ], 25 static_libs: [ 26 "libasync_safe", 27 "libdiskusage", 28 "libinstalld", 29 "liblog", 30 ], 31 test_config: "installd_utils_test.xml", 32} 33 34cc_test { 35 name: "installd_cache_test", 36 test_suites: ["device-tests"], 37 clang: true, 38 srcs: ["installd_cache_test.cpp"], 39 cflags: [ 40 "-Wall", 41 "-Werror", 42 ], 43 shared_libs: [ 44 "libbase", 45 "libbinder", 46 "libcrypto", 47 "libcutils", 48 "libprocessgroup", 49 "libselinux", 50 "libutils", 51 "server_configurable_flags", 52 ], 53 static_libs: [ 54 "libasync_safe", 55 "libdiskusage", 56 "libinstalld", 57 "liblog", 58 "liblogwrap", 59 ], 60 test_config: "installd_cache_test.xml", 61 62 product_variables: { 63 arc: { 64 exclude_srcs: [ 65 "QuotaUtils.cpp", 66 ], 67 static_libs: [ 68 "libarcdiskquota", 69 "arc_services_aidl", 70 ], 71 cflags: [ 72 "-DUSE_ARC", 73 ], 74 }, 75 }, 76} 77 78cc_test { 79 name: "installd_service_test", 80 test_suites: ["device-tests"], 81 clang: true, 82 srcs: ["installd_service_test.cpp"], 83 cflags: [ 84 "-Wall", 85 "-Werror", 86 ], 87 shared_libs: [ 88 "libbase", 89 "libbinder", 90 "libcrypto", 91 "libcutils", 92 "libprocessgroup", 93 "libselinux", 94 "libutils", 95 "server_configurable_flags", 96 ], 97 static_libs: [ 98 "libasync_safe", 99 "libdiskusage", 100 "libinstalld", 101 "liblog", 102 "liblogwrap", 103 ], 104 test_config: "installd_service_test.xml", 105 106 product_variables: { 107 arc: { 108 exclude_srcs: [ 109 "QuotaUtils.cpp", 110 ], 111 static_libs: [ 112 "libarcdiskquota", 113 "arc_services_aidl", 114 ], 115 cflags: [ 116 "-DUSE_ARC", 117 ], 118 }, 119 }, 120} 121 122cc_test { 123 name: "installd_dexopt_test", 124 test_suites: ["device-tests"], 125 clang: true, 126 srcs: ["installd_dexopt_test.cpp"], 127 cflags: [ 128 "-Wall", 129 "-Werror", 130 ], 131 shared_libs: [ 132 "libbase", 133 "libbinder", 134 "libcrypto", 135 "libcutils", 136 "libprocessgroup", 137 "libselinux", 138 "libutils", 139 "server_configurable_flags", 140 ], 141 static_libs: [ 142 "libasync_safe", 143 "libdiskusage", 144 "libinstalld", 145 "liblog", 146 "liblogwrap", 147 "libziparchive", 148 "libz", 149 ], 150 test_config: "installd_dexopt_test.xml", 151 152 product_variables: { 153 arc: { 154 exclude_srcs: [ 155 "QuotaUtils.cpp", 156 ], 157 static_libs: [ 158 "libarcdiskquota", 159 "arc_services_aidl", 160 ], 161 cflags: [ 162 "-DUSE_ARC", 163 ], 164 }, 165 }, 166} 167 168cc_test { 169 name: "installd_otapreopt_test", 170 test_suites: ["device-tests"], 171 clang: true, 172 srcs: ["installd_otapreopt_test.cpp"], 173 cflags: [ 174 "-Wall", 175 "-Werror", 176 ], 177 shared_libs: [ 178 "libbase", 179 "libcutils", 180 "libutils", 181 "server_configurable_flags", 182 ], 183 static_libs: [ 184 "liblog", 185 "libotapreoptparameters", 186 ], 187} 188