blob: 739f33f50f59b0d96c20526c711c1a2ccaf2d59f [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 ],
18}
Jeff Sharkey871a8f22017-02-21 18:30:28 -070019
20cc_test {
21 name: "installd_cache_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080022 test_suites: ["device-tests"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070023 clang: true,
24 srcs: ["installd_cache_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070025 cflags: ["-Wall", "-Werror"],
Jeff Sharkey871a8f22017-02-21 18:30:28 -070026 shared_libs: [
27 "libbase",
28 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010029 "libcrypto",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070030 "libcutils",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070031 "libselinux",
32 "libutils",
33 ],
34 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070035 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070036 "libinstalld",
37 "liblog",
38 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070039 ],
40}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060041
42cc_test {
43 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080044 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060045 clang: true,
46 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070047 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060048 shared_libs: [
49 "libbase",
50 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010051 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060052 "libcutils",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060053 "libselinux",
54 "libutils",
55 ],
56 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060057 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070058 "libinstalld",
59 "liblog",
60 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060061 ],
62}
Calin Juravle7d765462017-09-04 15:57:10 -070063
64cc_test {
65 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080066 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -070067 clang: true,
68 srcs: ["installd_dexopt_test.cpp"],
69 cflags: ["-Wall", "-Werror"],
70 shared_libs: [
71 "libbase",
72 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010073 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -070074 "libcutils",
75 "libselinux",
76 "libutils",
77 ],
78 static_libs: [
79 "libdiskusage",
80 "libinstalld",
81 "liblog",
82 "liblogwrap",
83 ],
84}
Calin Juravledff47292018-02-01 14:44:56 +000085
86cc_test {
87 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080088 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +000089 clang: true,
90 srcs: ["installd_otapreopt_test.cpp"],
91 cflags: ["-Wall", "-Werror"],
92 shared_libs: [
93 "libbase",
94 "libcutils",
95 "libutils",
96 ],
97 static_libs: [
98 "liblog",
99 "libotapreoptparameters"
100 ],
101}
102