blob: f67ab812fa0fe6ef4f638ef2c57d047374661519 [file] [log] [blame]
Dan Willemsen4c939742016-12-06 15:44:57 -08001// Build the unit tests for installd
Bob Badour3c538232021-02-12 21:26:48 -08002package {
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 Willemsen4c939742016-12-06 15:44:57 -080011cc_test {
12 name: "installd_utils_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080013 test_suites: ["device-tests"],
Dan Willemsen4c939742016-12-06 15:44:57 -080014 clang: true,
15 srcs: ["installd_utils_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070016 cflags: ["-Wall", "-Werror"],
Dan Willemsen4c939742016-12-06 15:44:57 -080017 shared_libs: [
18 "libbase",
Dan Willemsen4c939742016-12-06 15:44:57 -080019 "libutils",
20 "libcutils",
21 ],
22 static_libs: [
Dan Willemsen4c939742016-12-06 15:44:57 -080023 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070024 "libinstalld",
25 "liblog",
Dan Willemsen4c939742016-12-06 15:44:57 -080026 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070027 test_config: "installd_utils_test.xml",
Dan Willemsen4c939742016-12-06 15:44:57 -080028}
Jeff Sharkey871a8f22017-02-21 18:30:28 -070029
30cc_test {
31 name: "installd_cache_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080032 test_suites: ["device-tests"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070033 clang: true,
34 srcs: ["installd_cache_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070035 cflags: ["-Wall", "-Werror"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070036 shared_libs: [
37 "libbase",
38 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010039 "libcrypto",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070040 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000041 "libprocessgroup",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070042 "libselinux",
43 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000044 "server_configurable_flags",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070045 ],
46 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070047 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070048 "libinstalld",
49 "liblog",
50 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070051 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070052 test_config: "installd_cache_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +090053
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 Sharkey871a8f22017-02-21 18:30:28 -070068}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060069
70cc_test {
71 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080072 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060073 clang: true,
74 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070075 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060076 shared_libs: [
77 "libbase",
78 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010079 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060080 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000081 "libprocessgroup",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060082 "libselinux",
83 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000084 "server_configurable_flags",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060085 ],
86 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060087 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070088 "libinstalld",
89 "liblog",
90 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060091 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070092 test_config: "installd_service_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +090093
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 Sharkeye12d5962017-04-03 16:41:02 -0600108}
Calin Juravle7d765462017-09-04 15:57:10 -0700109
110cc_test {
111 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -0800112 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -0700113 clang: true,
114 srcs: ["installd_dexopt_test.cpp"],
115 cflags: ["-Wall", "-Werror"],
116 shared_libs: [
117 "libbase",
118 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +0100119 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -0700120 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +0000121 "libprocessgroup",
Calin Juravle7d765462017-09-04 15:57:10 -0700122 "libselinux",
123 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000124 "server_configurable_flags",
Calin Juravle7d765462017-09-04 15:57:10 -0700125 ],
126 static_libs: [
127 "libdiskusage",
128 "libinstalld",
129 "liblog",
130 "liblogwrap",
liulvping61907742018-08-21 09:36:52 +0800131 "libziparchive",
132 "libz",
Calin Juravle7d765462017-09-04 15:57:10 -0700133 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -0700134 test_config: "installd_dexopt_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +0900135
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 Juravle7d765462017-09-04 15:57:10 -0700150}
Calin Juravledff47292018-02-01 14:44:56 +0000151
152cc_test {
153 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -0800154 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +0000155 clang: true,
156 srcs: ["installd_otapreopt_test.cpp"],
157 cflags: ["-Wall", "-Werror"],
158 shared_libs: [
159 "libbase",
160 "libcutils",
161 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000162 "server_configurable_flags",
Calin Juravledff47292018-02-01 14:44:56 +0000163 ],
164 static_libs: [
165 "liblog",
166 "libotapreoptparameters"
167 ],
168}