Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 1 | // Build the unit tests for installd |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 2 | package { |
| 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 | |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 11 | cc_test { |
| 12 | name: "installd_utils_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 13 | test_suites: ["device-tests"], |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 14 | clang: true, |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 15 | srcs: ["installd_utils_test.cpp"], |
Shikha Malhotra | aae9644 | 2021-11-25 10:52:50 +0000 | [diff] [blame] | 16 | cflags: [ |
| 17 | "-Wall", |
| 18 | "-Werror", |
| 19 | ], |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 20 | shared_libs: [ |
| 21 | "libbase", |
Alex Buynytskyy | 038a19b | 2022-02-09 19:51:52 -0800 | [diff] [blame] | 22 | "libutils", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 23 | "libcutils", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 24 | ], |
| 25 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 26 | "libasync_safe", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 27 | "libdiskusage", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 28 | "libext2_uuid", |
Samiul Islam | b9e96bf | 2022-02-03 12:45:51 +0000 | [diff] [blame] | 29 | "libgmock", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 30 | "libinstalld", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 31 | "liblog", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 32 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 33 | test_config: "installd_utils_test.xml", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 34 | } |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 35 | |
| 36 | cc_test { |
| 37 | name: "installd_cache_test", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 38 | test_suites: ["device-tests"], |
| 39 | clang: true, |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 40 | srcs: ["installd_cache_test.cpp"], |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Werror", |
| 44 | ], |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 45 | shared_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 46 | "libbase", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 47 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 48 | "libcrypto", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 49 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 50 | "libprocessgroup", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 51 | "libselinux", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 52 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 53 | "server_configurable_flags", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 54 | ], |
| 55 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 56 | "libasync_safe", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 57 | "libdiskusage", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 58 | "libext2_uuid", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 59 | "libinstalld", |
Yang Tianping | 8f2a40e | 2021-10-29 14:39:02 +0800 | [diff] [blame] | 60 | "libziparchive", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 61 | "liblog", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 62 | "liblogwrap", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 63 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 64 | test_config: "installd_cache_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 65 | |
| 66 | product_variables: { |
| 67 | arc: { |
| 68 | exclude_srcs: [ |
| 69 | "QuotaUtils.cpp", |
| 70 | ], |
| 71 | static_libs: [ |
| 72 | "libarcdiskquota", |
| 73 | "arc_services_aidl", |
| 74 | ], |
| 75 | cflags: [ |
| 76 | "-DUSE_ARC", |
| 77 | ], |
| 78 | }, |
| 79 | }, |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 80 | } |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 81 | |
| 82 | cc_test { |
| 83 | name: "installd_service_test", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 84 | test_suites: ["device-tests"], |
| 85 | clang: true, |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 86 | srcs: ["installd_service_test.cpp"], |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 87 | cflags: [ |
| 88 | "-Wall", |
| 89 | "-Werror", |
| 90 | ], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 91 | shared_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 92 | "libbase", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 93 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 94 | "libcrypto", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 95 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 96 | "libprocessgroup", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 97 | "libselinux", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 98 | "libutils", |
Shikha Malhotra | aae9644 | 2021-11-25 10:52:50 +0000 | [diff] [blame] | 99 | "packagemanager_aidl-cpp", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 100 | "server_configurable_flags", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 101 | ], |
| 102 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 103 | "libasync_safe", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 104 | "libdiskusage", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 105 | "libext2_uuid", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 106 | "libinstalld", |
Yang Tianping | 8f2a40e | 2021-10-29 14:39:02 +0800 | [diff] [blame] | 107 | "libziparchive", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 108 | "liblog", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 109 | "liblogwrap", |
Rishabh Singh | 0a14f8a | 2022-02-02 20:56:13 +0000 | [diff] [blame^] | 110 | "libc++fs", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 111 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 112 | test_config: "installd_service_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 113 | |
| 114 | product_variables: { |
| 115 | arc: { |
| 116 | exclude_srcs: [ |
| 117 | "QuotaUtils.cpp", |
| 118 | ], |
| 119 | static_libs: [ |
| 120 | "libarcdiskquota", |
| 121 | "arc_services_aidl", |
| 122 | ], |
| 123 | cflags: [ |
| 124 | "-DUSE_ARC", |
| 125 | ], |
| 126 | }, |
| 127 | }, |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 128 | } |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 129 | |
| 130 | cc_test { |
| 131 | name: "installd_dexopt_test", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 132 | test_suites: ["device-tests"], |
| 133 | clang: true, |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 134 | srcs: ["installd_dexopt_test.cpp"], |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 135 | cflags: [ |
| 136 | "-Wall", |
| 137 | "-Werror", |
| 138 | ], |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 139 | shared_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 140 | "libbase", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 141 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 142 | "libcrypto", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 143 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 144 | "libprocessgroup", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 145 | "libselinux", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 146 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 147 | "server_configurable_flags", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 148 | ], |
| 149 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 150 | "libasync_safe", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 151 | "libdiskusage", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 152 | "libext2_uuid", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 153 | "libinstalld", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 154 | "liblog", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 155 | "liblogwrap", |
liulvping | 6190774 | 2018-08-21 09:36:52 +0800 | [diff] [blame] | 156 | "libziparchive", |
| 157 | "libz", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 158 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 159 | test_config: "installd_dexopt_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 160 | |
| 161 | product_variables: { |
| 162 | arc: { |
| 163 | exclude_srcs: [ |
| 164 | "QuotaUtils.cpp", |
| 165 | ], |
| 166 | static_libs: [ |
| 167 | "libarcdiskquota", |
| 168 | "arc_services_aidl", |
| 169 | ], |
| 170 | cflags: [ |
| 171 | "-DUSE_ARC", |
| 172 | ], |
| 173 | }, |
| 174 | }, |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 175 | } |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 176 | |
| 177 | cc_test { |
| 178 | name: "installd_otapreopt_test", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 179 | test_suites: ["device-tests"], |
| 180 | clang: true, |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 181 | srcs: ["installd_otapreopt_test.cpp"], |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 182 | cflags: [ |
| 183 | "-Wall", |
| 184 | "-Werror", |
| 185 | ], |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 186 | shared_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 187 | "libbase", |
| 188 | "libcutils", |
| 189 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 190 | "server_configurable_flags", |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 191 | ], |
| 192 | static_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 193 | "liblog", |
Shikha Malhotra | aae9644 | 2021-11-25 10:52:50 +0000 | [diff] [blame] | 194 | "libotapreoptparameters", |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 195 | ], |
| 196 | } |
Keun young Park | b734226 | 2021-10-25 08:09:27 -0700 | [diff] [blame] | 197 | |
| 198 | cc_test { |
| 199 | name: "installd_file_test", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 200 | test_suites: ["device-tests"], |
| 201 | clang: true, |
Keun young Park | b734226 | 2021-10-25 08:09:27 -0700 | [diff] [blame] | 202 | srcs: ["installd_file_test.cpp"], |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 203 | cflags: [ |
| 204 | "-Wall", |
| 205 | "-Werror", |
| 206 | ], |
| 207 | shared_libs: [ |
| 208 | "libbase", |
| 209 | "libcutils", |
| 210 | "libutils", |
| 211 | ], |
Keun young Park | b734226 | 2021-10-25 08:09:27 -0700 | [diff] [blame] | 212 | static_libs: [ |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 213 | "libext2_uuid", |
Keun young Park | b734226 | 2021-10-25 08:09:27 -0700 | [diff] [blame] | 214 | "libinstalld", |
Alex Buynytskyy | 4ab5d53 | 2022-02-17 21:20:10 +0000 | [diff] [blame] | 215 | "liblog", |
Keun young Park | b734226 | 2021-10-25 08:09:27 -0700 | [diff] [blame] | 216 | ], |
| 217 | } |