OSDN Git Service

Use -Werror in system/extras
[android-x86/system-extras.git] / perfprofd / tests / Android.bp
1 // Build the unit tests.
2
3 perfprofd_test_cflags = [
4     "-Wall",
5     "-Werror",
6 ]
7
8 perfprofd_test_cppflags = [
9     "-Wno-sign-compare",
10     "-Wno-unused-parameter",
11 ]
12
13 //
14 // Static library with mockup utilities layer (called by unit test).
15 //
16 cc_library_static {
17     name: "libperfprofdmockutils",
18
19     include_dirs: ["system/extras/perfprofd"],
20     cflags: perfprofd_test_cflags,
21     cppflags: perfprofd_test_cppflags,
22     srcs: ["perfprofdmockutils.cc"],
23 }
24
25 //
26 // Unit test for perfprofd
27 //
28 cc_test {
29     name: "perfprofd_test",
30     test_suites: ["device-tests"],
31
32     stl: "libc++",
33     static_libs: [
34         "libperfprofdcore",
35         "libperfprofdmockutils",
36         "libbase",
37     ],
38     shared_libs: [
39         "libprotobuf-cpp-lite",
40         "liblog",
41         "libcutils",
42     ],
43     srcs: ["perfprofd_test.cc"],
44     cflags: perfprofd_test_cflags,
45     cppflags: perfprofd_test_cppflags,
46     data: [
47         "canned.perf.data",
48         "callchain.canned.perf.data",
49     ],
50 }