Debian Codegraph @

perfprofd/tests/Android.bp

raw
1 // Build the unit tests.
2
3 cc_defaults {
4 name: "perfprofd_test_defaults",
5 defaults: [
6 "libartd_static_defaults",
7 "perfprofd_defaults",
8 "perfprofd_debug_defaults",
9 ],
10
11 strip: {
12 keep_symbols: true,
13 },
14 }
15
16 //
17 // Unit test for perfprofd
18 //
19 cc_test {
20 name: "perfprofd_test",
21 defaults: [
22 "perfprofd_test_defaults",
23 "libsimpleperf_dex_read_static_reqs_defaults",
24 "libsimpleperf_elf_read_static_reqs_defaults",
25 ],
26 test_suites: ["device-tests"],
27 host_supported: true,
28
29 stl: "libc++",
30 static_libs: [
31 "libperfprofdcored",
32 "libperfprofd_proto_config",
33 "libsimpleperf_dex_read",
34 "libsimpleperf_elf_read",
35 "libbase",
36 "libutils",
37 "libz",
38 "libprotobuf-cpp-lite",
39 "liblog",
40 ],
41 target: {
42 host: {
43 host_ldlibs: [
44 "-lncurses",
45 ],
46 },
47
48 // The live tests require simpleperf.
49 android: {
50 required: [
51 "simpleperf",
52 ],
53 static_libs: [
54 "libhealthhalutils",
55 ],
56 shared_libs: [
57 "[email protected]",
58 "libbinder",
59 "libhidlbase",
60 "libservices",
61 "libutils",
62 ],
63 },
64
65 },
66 srcs: [
67 "perfprofd_test.cc",
68 ],
69 data: [
70 "canned.perf.data",
71 "callchain.canned.perf.data",
72 ],
73 }