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: ["-Wall", "-Werror"], 17 shared_libs: [ 18 "libbase", 19 "libutils", 20 "libcutils", 21 ], 22 static_libs: [ 23 "libasync_safe", 24 "libdiskusage", 25 "libinstalld", 26 "liblog", 27 ], 28 test_config: "installd_utils_test.xml", 29} 30 31cc_test { 32 name: "installd_cache_test", 33 test_suites: ["device-tests"], 34 clang: true, 35 srcs: ["installd_cache_test.cpp"], 36 cflags: ["-Wall", "-Werror"], 37 shared_libs: [ 38 "libbase", 39 "libbinder", 40 "libcrypto", 41 "libcutils", 42 "libprocessgroup", 43 "libselinux", 44 "libutils", 45 "server_configurable_flags", 46 ], 47 static_libs: [ 48 "libasync_safe", 49 "libdiskusage", 50 "libinstalld", 51 "liblog", 52 "liblogwrap", 53 ], 54 test_config: "installd_cache_test.xml", 55 56 product_variables: { 57 arc: { 58 exclude_srcs: [ 59 "QuotaUtils.cpp", 60 ], 61 static_libs: [ 62 "libarcdiskquota", 63 "arc_services_aidl", 64 ], 65 cflags: [ 66 "-DUSE_ARC", 67 ], 68 }, 69 }, 70} 71 72cc_test { 73 name: "installd_service_test", 74 test_suites: ["device-tests"], 75 clang: true, 76 srcs: ["installd_service_test.cpp"], 77 cflags: ["-Wall", "-Werror"], 78 shared_libs: [ 79 "libbase", 80 "libbinder", 81 "libcrypto", 82 "libcutils", 83 "libprocessgroup", 84 "libselinux", 85 "libutils", 86 "server_configurable_flags", 87 ], 88 static_libs: [ 89 "libasync_safe", 90 "libdiskusage", 91 "libinstalld", 92 "liblog", 93 "liblogwrap", 94 ], 95 test_config: "installd_service_test.xml", 96 97 product_variables: { 98 arc: { 99 exclude_srcs: [ 100 "QuotaUtils.cpp", 101 ], 102 static_libs: [ 103 "libarcdiskquota", 104 "arc_services_aidl", 105 ], 106 cflags: [ 107 "-DUSE_ARC", 108 ], 109 }, 110 }, 111} 112 113cc_test { 114 name: "installd_dexopt_test", 115 test_suites: ["device-tests"], 116 clang: true, 117 srcs: ["installd_dexopt_test.cpp"], 118 cflags: ["-Wall", "-Werror"], 119 shared_libs: [ 120 "libbase", 121 "libbinder", 122 "libcrypto", 123 "libcutils", 124 "libprocessgroup", 125 "libselinux", 126 "libutils", 127 "server_configurable_flags", 128 ], 129 static_libs: [ 130 "libasync_safe", 131 "libdiskusage", 132 "libinstalld", 133 "liblog", 134 "liblogwrap", 135 "libziparchive", 136 "libz", 137 ], 138 test_config: "installd_dexopt_test.xml", 139 140 product_variables: { 141 arc: { 142 exclude_srcs: [ 143 "QuotaUtils.cpp", 144 ], 145 static_libs: [ 146 "libarcdiskquota", 147 "arc_services_aidl", 148 ], 149 cflags: [ 150 "-DUSE_ARC", 151 ], 152 }, 153 }, 154} 155 156cc_test { 157 name: "installd_otapreopt_test", 158 test_suites: ["device-tests"], 159 clang: true, 160 srcs: ["installd_otapreopt_test.cpp"], 161 cflags: ["-Wall", "-Werror"], 162 shared_libs: [ 163 "libbase", 164 "libcutils", 165 "libutils", 166 "server_configurable_flags", 167 ], 168 static_libs: [ 169 "liblog", 170 "libotapreoptparameters" 171 ], 172} 173