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 | |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [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, |
| 15 | srcs: ["installd_utils_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 16 | cflags: ["-Wall", "-Werror"], |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 17 | shared_libs: [ |
| 18 | "libbase", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 19 | "libutils", |
| 20 | "libcutils", |
| 21 | ], |
| 22 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 23 | "libasync_safe", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 24 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 25 | "libinstalld", |
| 26 | "liblog", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 27 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 28 | test_config: "installd_utils_test.xml", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 29 | } |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 30 | |
| 31 | cc_test { |
| 32 | name: "installd_cache_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 33 | test_suites: ["device-tests"], |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 34 | clang: true, |
| 35 | srcs: ["installd_cache_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 36 | cflags: ["-Wall", "-Werror"], |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 37 | shared_libs: [ |
| 38 | "libbase", |
| 39 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 40 | "libcrypto", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 41 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 42 | "libprocessgroup", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 43 | "libselinux", |
| 44 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 45 | "server_configurable_flags", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 46 | ], |
| 47 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 48 | "libasync_safe", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 49 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 50 | "libinstalld", |
Yang Tianping | 8f2a40e | 2021-10-29 14:39:02 +0800 | [diff] [blame^] | 51 | "libziparchive", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 52 | "liblog", |
| 53 | "liblogwrap", |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 54 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 55 | test_config: "installd_cache_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 56 | |
| 57 | product_variables: { |
| 58 | arc: { |
| 59 | exclude_srcs: [ |
| 60 | "QuotaUtils.cpp", |
| 61 | ], |
| 62 | static_libs: [ |
| 63 | "libarcdiskquota", |
| 64 | "arc_services_aidl", |
| 65 | ], |
| 66 | cflags: [ |
| 67 | "-DUSE_ARC", |
| 68 | ], |
| 69 | }, |
| 70 | }, |
Jeff Sharkey | 871a8f2 | 2017-02-21 18:30:28 -0700 | [diff] [blame] | 71 | } |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 72 | |
| 73 | cc_test { |
| 74 | name: "installd_service_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 75 | test_suites: ["device-tests"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 76 | clang: true, |
| 77 | srcs: ["installd_service_test.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 78 | cflags: ["-Wall", "-Werror"], |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 79 | shared_libs: [ |
| 80 | "libbase", |
| 81 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 82 | "libcrypto", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 83 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 84 | "libprocessgroup", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 85 | "libselinux", |
| 86 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 87 | "server_configurable_flags", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 88 | ], |
| 89 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 90 | "libasync_safe", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 91 | "libdiskusage", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 92 | "libinstalld", |
Yang Tianping | 8f2a40e | 2021-10-29 14:39:02 +0800 | [diff] [blame^] | 93 | "libziparchive", |
Arthur Eubanks | e1d9b28 | 2017-08-16 17:12:33 -0700 | [diff] [blame] | 94 | "liblog", |
| 95 | "liblogwrap", |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 96 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 97 | test_config: "installd_service_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 98 | |
| 99 | product_variables: { |
| 100 | arc: { |
| 101 | exclude_srcs: [ |
| 102 | "QuotaUtils.cpp", |
| 103 | ], |
| 104 | static_libs: [ |
| 105 | "libarcdiskquota", |
| 106 | "arc_services_aidl", |
| 107 | ], |
| 108 | cflags: [ |
| 109 | "-DUSE_ARC", |
| 110 | ], |
| 111 | }, |
| 112 | }, |
Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 113 | } |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 114 | |
| 115 | cc_test { |
| 116 | name: "installd_dexopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 117 | test_suites: ["device-tests"], |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 118 | clang: true, |
| 119 | srcs: ["installd_dexopt_test.cpp"], |
| 120 | cflags: ["-Wall", "-Werror"], |
| 121 | shared_libs: [ |
| 122 | "libbase", |
| 123 | "libbinder", |
Alan Stokes | a25d90c | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 124 | "libcrypto", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 125 | "libcutils", |
Suren Baghdasaryan | 1cc5de6 | 2019-01-25 05:29:23 +0000 | [diff] [blame] | 126 | "libprocessgroup", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 127 | "libselinux", |
| 128 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 129 | "server_configurable_flags", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 130 | ], |
| 131 | static_libs: [ |
Martijn Coenen | 6de402a | 2021-04-26 16:23:40 +0200 | [diff] [blame] | 132 | "libasync_safe", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 133 | "libdiskusage", |
| 134 | "libinstalld", |
| 135 | "liblog", |
| 136 | "liblogwrap", |
liulvping | 6190774 | 2018-08-21 09:36:52 +0800 | [diff] [blame] | 137 | "libziparchive", |
| 138 | "libz", |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 139 | ], |
Andreas Gampe | 75d394e | 2019-03-25 11:37:15 -0700 | [diff] [blame] | 140 | test_config: "installd_dexopt_test.xml", |
Boleyn Su | 6ae7c46 | 2020-10-20 18:40:40 +0900 | [diff] [blame] | 141 | |
| 142 | product_variables: { |
| 143 | arc: { |
| 144 | exclude_srcs: [ |
| 145 | "QuotaUtils.cpp", |
| 146 | ], |
| 147 | static_libs: [ |
| 148 | "libarcdiskquota", |
| 149 | "arc_services_aidl", |
| 150 | ], |
| 151 | cflags: [ |
| 152 | "-DUSE_ARC", |
| 153 | ], |
| 154 | }, |
| 155 | }, |
Calin Juravle | 7d76546 | 2017-09-04 15:57:10 -0700 | [diff] [blame] | 156 | } |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 157 | |
| 158 | cc_test { |
| 159 | name: "installd_otapreopt_test", |
Andreas Gampe | c23dc12 | 2018-03-07 10:26:50 -0800 | [diff] [blame] | 160 | test_suites: ["device-tests"], |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 161 | clang: true, |
| 162 | srcs: ["installd_otapreopt_test.cpp"], |
| 163 | cflags: ["-Wall", "-Werror"], |
| 164 | shared_libs: [ |
| 165 | "libbase", |
| 166 | "libcutils", |
| 167 | "libutils", |
Nicolas Geoffray | aaad21e | 2019-02-25 13:31:10 +0000 | [diff] [blame] | 168 | "server_configurable_flags", |
Calin Juravle | dff4729 | 2018-02-01 14:44:56 +0000 | [diff] [blame] | 169 | ], |
| 170 | static_libs: [ |
| 171 | "liblog", |
| 172 | "libotapreoptparameters" |
| 173 | ], |
| 174 | } |