blob: 1ed49a0cfdc3f09eb590a1d0f71482784d0e91b4 [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",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000034 "server_configurable_flags",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070035 ],
36 static_libs: [
Jeff Sharkey871a8f22017-02-21 18:30:28 -070037 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070038 "libinstalld",
39 "liblog",
40 "liblogwrap",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070041 ],
42}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060043
44cc_test {
45 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080046 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060047 clang: true,
48 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070049 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060050 shared_libs: [
51 "libbase",
52 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010053 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060054 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000055 "libprocessgroup",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060056 "libselinux",
57 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000058 "server_configurable_flags",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060059 ],
60 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060061 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070062 "libinstalld",
63 "liblog",
64 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060065 ],
66}
Calin Juravle7d765462017-09-04 15:57:10 -070067
68cc_test {
69 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080070 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -070071 clang: true,
72 srcs: ["installd_dexopt_test.cpp"],
73 cflags: ["-Wall", "-Werror"],
74 shared_libs: [
75 "libbase",
76 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010077 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -070078 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000079 "libprocessgroup",
Calin Juravle7d765462017-09-04 15:57:10 -070080 "libselinux",
81 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000082 "server_configurable_flags",
Calin Juravle7d765462017-09-04 15:57:10 -070083 ],
84 static_libs: [
85 "libdiskusage",
86 "libinstalld",
87 "liblog",
88 "liblogwrap",
89 ],
90}
Calin Juravledff47292018-02-01 14:44:56 +000091
92cc_test {
93 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080094 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +000095 clang: true,
96 srcs: ["installd_otapreopt_test.cpp"],
97 cflags: ["-Wall", "-Werror"],
98 shared_libs: [
99 "libbase",
100 "libcutils",
101 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000102 "server_configurable_flags",
Calin Juravledff47292018-02-01 14:44:56 +0000103 ],
104 static_libs: [
105 "liblog",
106 "libotapreoptparameters"
107 ],
108}
109