blob: 9c9db0f21dbcc5c5191d0e5c807e0994d9ccbb41 [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",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000031 "libprocessgroup",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070032 "libselinux",
33 "libutils",
34 ],
35 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070036 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070037 "libinstalld",
38 "liblog",
39 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070040 ],
41}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060042
43cc_test {
44 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080045 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060046 clang: true,
47 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070048 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060049 shared_libs: [
50 "libbase",
51 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010052 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060053 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000054 "libprocessgroup",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060055 "libselinux",
56 "libutils",
57 ],
58 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060059 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070060 "libinstalld",
61 "liblog",
62 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060063 ],
64}
Calin Juravle7d765462017-09-04 15:57:10 -070065
66cc_test {
67 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080068 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -070069 clang: true,
70 srcs: ["installd_dexopt_test.cpp"],
71 cflags: ["-Wall", "-Werror"],
72 shared_libs: [
73 "libbase",
74 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010075 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -070076 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000077 "libprocessgroup",
Calin Juravle7d765462017-09-04 15:57:10 -070078 "libselinux",
79 "libutils",
80 ],
81 static_libs: [
82 "libdiskusage",
83 "libinstalld",
84 "liblog",
85 "liblogwrap",
86 ],
87}
Calin Juravledff47292018-02-01 14:44:56 +000088
89cc_test {
90 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080091 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +000092 clang: true,
93 srcs: ["installd_otapreopt_test.cpp"],
94 cflags: ["-Wall", "-Werror"],
95 shared_libs: [
96 "libbase",
97 "libcutils",
98 "libutils",
99 ],
100 static_libs: [
101 "liblog",
102 "libotapreoptparameters"
103 ],
104}
105