From af6d780eb2ea43450c2f5ffafb745ea9de7170c2 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 17 Feb 2022 22:03:12 -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-bootable-recovery_subset Change-Id: I3c4606959ab70e339df201501356b24953d4fb8a --- tests/Android.bp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Android.bp b/tests/Android.bp index 7f00adcd4..9ad3d3b80 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -134,6 +134,10 @@ cc_test { test_suites: ["device-tests"], + tidy_timeout_srcs: [ + "unit/commands_test.cpp", + ], + srcs: [ "unit/*.cpp", ], @@ -192,6 +196,10 @@ cc_test_host { "libupdater_defaults", ], + tidy_timeout_srcs: [ + "unit/host/imgdiff_test.cpp", + ], + srcs: [ "unit/host/*", ], -- cgit v1.2.3