diff options
author | Yan Wang <yawanng@google.com> | 2019-10-15 15:24:54 -0700 |
---|---|---|
committer | Yan Wang <yawanng@google.com> | 2019-10-22 20:49:31 +0000 |
commit | a1123fbf5149486bbf88b0a74f2541333c2e139e (patch) | |
tree | 01946d814a331c7cb9fa5f54ce90c6f7cef1960b /Android.bp | |
parent | 934585daafb5f371832f5eabbde696d89cfc3d67 (diff) | |
download | platform_system_iorap-a1123fbf5149486bbf88b0a74f2541333c2e139e.tar.gz platform_system_iorap-a1123fbf5149486bbf88b0a74f2541333c2e139e.tar.bz2 platform_system_iorap-a1123fbf5149486bbf88b0a74f2541333c2e139e.zip |
compiler: Add truncation from trace duration.
Drop ftrace events during compilation whose timestamp exceeds
the argument --timestamp-limit-ns.
Bug-Id: 137684347
Test: atest --host iorapd-host-tests
Change-Id: I0f394e259c3c74816dc480492ee5caf856c3fffa
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -218,14 +218,45 @@ cc_test { defaults: [ "iorap-default-flags", "iorap-default-dependencies", + "libiorap-compiler-default-dependencies", ], srcs: [ - "tests/src/**/*.cc", + "tests/src/binder/*.cc", + "tests/src/inode2filename/*.cc", + "tests/src/log/*.cc", + "tests/src/tmp/*.cc", + ], + data: [ + "tests/src/compiler/testdata/*", ], cflags: ["-O2", "-UNDEBUG"], // TODO: we should probably have per-component tests. static_libs: ["libgmock_main", "libgmock", "libgtest", "libiorap-inode2filename"], + +} + + +cc_test_host { + name: "iorapd-host-tests", + test_suites: ["general-tests"], + gtest: false, // we use gtest *and* gmock. + defaults: [ + "iorap-default-flags", + "iorap-default-dependencies", + "libiorap-compiler-default-dependencies", + ], + srcs: [ + "tests/src/compiler/*.cc", + ], + data: [ + "tests/src/compiler/testdata/*", + ], + cflags: ["-O2", "-UNDEBUG"], + + // TODO: we should probably have per-component tests. + static_libs: ["libgmock_main", "libgmock", "libgtest", "libiorap-compiler"], + } filegroup { |