blob: 7438d3d9b4d92dd35b1eaba19a5296adaa0e701d [file] [log] [blame]
Dan Willemsen4c939742016-12-06 15:44:57 -08001// Build the unit tests for installd
2cc_test {
3 name: "installd_utils_test",
4 clang: true,
5 srcs: ["installd_utils_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -07006 cflags: ["-Wall", "-Werror"],
Dan Willemsen4c939742016-12-06 15:44:57 -08007 shared_libs: [
8 "libbase",
Dan Willemsen4c939742016-12-06 15:44:57 -08009 "libutils",
10 "libcutils",
11 ],
12 static_libs: [
Dan Willemsen4c939742016-12-06 15:44:57 -080013 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070014 "libinstalld",
15 "liblog",
Dan Willemsen4c939742016-12-06 15:44:57 -080016 ],
17}
Jeff Sharkey871a8f22017-02-21 18:30:28 -070018
19cc_test {
20 name: "installd_cache_test",
21 clang: true,
22 srcs: ["installd_cache_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070023 cflags: ["-Wall", "-Werror"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070024 shared_libs: [
25 "libbase",
26 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010027 "libcrypto",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070028 "libcutils",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070029 "libselinux",
30 "libutils",
31 ],
32 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070033 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070034 "libinstalld",
35 "liblog",
36 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070037 ],
38}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060039
40cc_test {
41 name: "installd_service_test",
42 clang: true,
43 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070044 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060045 shared_libs: [
46 "libbase",
47 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010048 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060049 "libcutils",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060050 "libselinux",
51 "libutils",
52 ],
53 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060054 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070055 "libinstalld",
56 "liblog",
57 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060058 ],
59}
Calin Juravle7d765462017-09-04 15:57:10 -070060
61cc_test {
62 name: "installd_dexopt_test",
63 clang: true,
64 srcs: ["installd_dexopt_test.cpp"],
65 cflags: ["-Wall", "-Werror"],
66 shared_libs: [
67 "libbase",
68 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010069 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -070070 "libcutils",
71 "libselinux",
72 "libutils",
73 ],
74 static_libs: [
75 "libdiskusage",
76 "libinstalld",
77 "liblog",
78 "liblogwrap",
79 ],
80}
Calin Juravledff47292018-02-01 14:44:56 +000081
82cc_test {
83 name: "installd_otapreopt_test",
84 clang: true,
85 srcs: ["installd_otapreopt_test.cpp"],
86 cflags: ["-Wall", "-Werror"],
87 shared_libs: [
88 "libbase",
89 "libcutils",
90 "libutils",
91 ],
92 static_libs: [
93 "liblog",
94 "libotapreoptparameters"
95 ],
96}
97