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