blob: 7c9e3b2e38cede8d685e082a96149683f06a888b [file] [log] [blame]
Dan Willemsen4c939742016-12-06 15:44:57 -08001// Build the unit tests for installd
2cc_test {
3 name: "installd_utils_test",
Andreas Gampec23dc122018-03-07 10:26:50 -08004 test_suites: ["device-tests"],
Dan Willemsen4c939742016-12-06 15:44:57 -08005 clang: true,
6 srcs: ["installd_utils_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -07007 cflags: ["-Wall", "-Werror"],
Dan Willemsen4c939742016-12-06 15:44:57 -08008 shared_libs: [
9 "libbase",
Dan Willemsen4c939742016-12-06 15:44:57 -080010 "libutils",
11 "libcutils",
12 ],
13 static_libs: [
Dan Willemsen4c939742016-12-06 15:44:57 -080014 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070015 "libinstalld",
16 "liblog",
Dan Willemsen4c939742016-12-06 15:44:57 -080017 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070018 test_config: "installd_utils_test.xml",
Dan Willemsen4c939742016-12-06 15:44:57 -080019}
Jeff Sharkey871a8f22017-02-21 18:30:28 -070020
21cc_test {
22 name: "installd_cache_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080023 test_suites: ["device-tests"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070024 clang: true,
25 srcs: ["installd_cache_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070026 cflags: ["-Wall", "-Werror"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070027 shared_libs: [
28 "libbase",
29 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010030 "libcrypto",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070031 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000032 "libprocessgroup",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070033 "libselinux",
34 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000035 "server_configurable_flags",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070036 ],
37 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070038 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070039 "libinstalld",
40 "liblog",
41 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070042 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070043 test_config: "installd_cache_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +090044
45 product_variables: {
46 arc: {
47 exclude_srcs: [
48 "QuotaUtils.cpp",
49 ],
50 static_libs: [
51 "libarcdiskquota",
52 "arc_services_aidl",
53 ],
54 cflags: [
55 "-DUSE_ARC",
56 ],
57 },
58 },
Jeff Sharkey871a8f22017-02-21 18:30:28 -070059}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060060
61cc_test {
62 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080063 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060064 clang: true,
65 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070066 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060067 shared_libs: [
68 "libbase",
69 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010070 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060071 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000072 "libprocessgroup",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060073 "libselinux",
74 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000075 "server_configurable_flags",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060076 ],
77 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060078 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070079 "libinstalld",
80 "liblog",
81 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060082 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070083 test_config: "installd_service_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +090084
85 product_variables: {
86 arc: {
87 exclude_srcs: [
88 "QuotaUtils.cpp",
89 ],
90 static_libs: [
91 "libarcdiskquota",
92 "arc_services_aidl",
93 ],
94 cflags: [
95 "-DUSE_ARC",
96 ],
97 },
98 },
Jeff Sharkeye12d5962017-04-03 16:41:02 -060099}
Calin Juravle7d765462017-09-04 15:57:10 -0700100
101cc_test {
102 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -0800103 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -0700104 clang: true,
105 srcs: ["installd_dexopt_test.cpp"],
106 cflags: ["-Wall", "-Werror"],
107 shared_libs: [
108 "libbase",
109 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +0100110 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -0700111 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +0000112 "libprocessgroup",
Calin Juravle7d765462017-09-04 15:57:10 -0700113 "libselinux",
114 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000115 "server_configurable_flags",
Calin Juravle7d765462017-09-04 15:57:10 -0700116 ],
117 static_libs: [
118 "libdiskusage",
119 "libinstalld",
120 "liblog",
121 "liblogwrap",
liulvping61907742018-08-21 09:36:52 +0800122 "libziparchive",
123 "libz",
Calin Juravle7d765462017-09-04 15:57:10 -0700124 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -0700125 test_config: "installd_dexopt_test.xml",
Boleyn Su6ae7c462020-10-20 18:40:40 +0900126
127 product_variables: {
128 arc: {
129 exclude_srcs: [
130 "QuotaUtils.cpp",
131 ],
132 static_libs: [
133 "libarcdiskquota",
134 "arc_services_aidl",
135 ],
136 cflags: [
137 "-DUSE_ARC",
138 ],
139 },
140 },
Calin Juravle7d765462017-09-04 15:57:10 -0700141}
Calin Juravledff47292018-02-01 14:44:56 +0000142
143cc_test {
144 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -0800145 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +0000146 clang: true,
147 srcs: ["installd_otapreopt_test.cpp"],
148 cflags: ["-Wall", "-Werror"],
149 shared_libs: [
150 "libbase",
151 "libcutils",
152 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000153 "server_configurable_flags",
Calin Juravledff47292018-02-01 14:44:56 +0000154 ],
155 static_libs: [
156 "liblog",
157 "libotapreoptparameters"
158 ],
159}
160