blob: aa79fdc100d8c6eef38fcd58ccce9eedd95d1ae0 [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",
Jeff Sharkey871a8f22017-02-21 18:30:28 -070044}
Jeff Sharkeye12d5962017-04-03 16:41:02 -060045
46cc_test {
47 name: "installd_service_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080048 test_suites: ["device-tests"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060049 clang: true,
50 srcs: ["installd_service_test.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070051 cflags: ["-Wall", "-Werror"],
Jeff Sharkeye12d5962017-04-03 16:41:02 -060052 shared_libs: [
53 "libbase",
54 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010055 "libcrypto",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060056 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000057 "libprocessgroup",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060058 "libselinux",
59 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000060 "server_configurable_flags",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060061 ],
62 static_libs: [
Jeff Sharkeye12d5962017-04-03 16:41:02 -060063 "libdiskusage",
Arthur Eubankse1d9b282017-08-16 17:12:33 -070064 "libinstalld",
65 "liblog",
66 "liblogwrap",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060067 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070068 test_config: "installd_service_test.xml",
Jeff Sharkeye12d5962017-04-03 16:41:02 -060069}
Calin Juravle7d765462017-09-04 15:57:10 -070070
71cc_test {
72 name: "installd_dexopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080073 test_suites: ["device-tests"],
Calin Juravle7d765462017-09-04 15:57:10 -070074 clang: true,
75 srcs: ["installd_dexopt_test.cpp"],
76 cflags: ["-Wall", "-Werror"],
77 shared_libs: [
78 "libbase",
79 "libbinder",
Alan Stokesa25d90c2017-10-16 10:56:00 +010080 "libcrypto",
Calin Juravle7d765462017-09-04 15:57:10 -070081 "libcutils",
Suren Baghdasaryan1cc5de62019-01-25 05:29:23 +000082 "libprocessgroup",
Calin Juravle7d765462017-09-04 15:57:10 -070083 "libselinux",
84 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +000085 "server_configurable_flags",
Calin Juravle7d765462017-09-04 15:57:10 -070086 ],
87 static_libs: [
88 "libdiskusage",
89 "libinstalld",
90 "liblog",
91 "liblogwrap",
92 ],
Andreas Gampe75d394e2019-03-25 11:37:15 -070093 test_config: "installd_dexopt_test.xml",
Calin Juravle7d765462017-09-04 15:57:10 -070094}
Calin Juravledff47292018-02-01 14:44:56 +000095
96cc_test {
97 name: "installd_otapreopt_test",
Andreas Gampec23dc122018-03-07 10:26:50 -080098 test_suites: ["device-tests"],
Calin Juravledff47292018-02-01 14:44:56 +000099 clang: true,
100 srcs: ["installd_otapreopt_test.cpp"],
101 cflags: ["-Wall", "-Werror"],
102 shared_libs: [
103 "libbase",
104 "libcutils",
105 "libutils",
Nicolas Geoffrayaaad21e2019-02-25 13:31:10 +0000106 "server_configurable_flags",
Calin Juravledff47292018-02-01 14:44:56 +0000107 ],
108 static_libs: [
109 "liblog",
110 "libotapreoptparameters"
111 ],
112}
113