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