You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
918 B
47 lines
918 B
// 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", |
|
], |
|
}
|
|
|