From fd1e574d43a2c673a7868a0a0429c533eaa7948a Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 17 Feb 2022 17:24:21 -0800 Subject: Add timed out test files to tidy_timeout_srcs * Timed out runs do not show any warning messages. * These test files cannot finish clang-tidy runs with the following settings: TIDY_TIMEOUT=90 WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 * When TIDY_TIMEOUT is set, in Android continuous builds, tidy_timeout_srcs files will not be compiled by clang-tidy. When developers build locally without TIDY_TIMEOUT, tidy_timeout_srcs files will be compiled. * Some of these test modules may be split into smaller ones, or disable some time consuming checks, and then enable clang-tidy to run within limited time. Bug: 201099167 Test: make droid tidy-system-extras_subset Change-Id: I0bc81bc0fa4da5e97c2f96242d05a366d321a0e0 --- simpleperf/Android.bp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/simpleperf/Android.bp b/simpleperf/Android.bp index ba4ef198..f71bd3b4 100644 --- a/simpleperf/Android.bp +++ b/simpleperf/Android.bp @@ -530,6 +530,11 @@ cc_library_shared { cc_defaults { name: "simpleperf_test_srcs", + tidy_timeout_srcs: [ + "record_test.cpp", + "cmd_report_sample_test.cpp", + "cmd_report_test.cpp", + ], srcs: [ "cmd_inject_test.cpp", "cmd_kmem_test.cpp", @@ -561,6 +566,10 @@ cc_defaults { ], }, linux: { + tidy_timeout_srcs: [ + "cmd_stat_test.cpp", + "cmd_record_test.cpp", + ], srcs: [ "CallChainJoiner_test.cpp", "cmd_api_test.cpp", -- cgit v1.2.3