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