diff options
author | Chih-Hung Hsieh <chh@google.com> | 2022-02-17 21:56:13 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2022-02-18 17:25:41 -0800 |
commit | ad1bf31b78dbbfb31fa27bade538884a905454d8 (patch) | |
tree | 56633427c9fba7080a5a070a249f7a17345db1b7 /sensors | |
parent | bade4d7bd2ef41fb1c1dd95d05b11c88a838b59f (diff) |
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-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
Diffstat (limited to 'sensors')
-rw-r--r-- | sensors/1.0/vts/functional/Android.bp | 3 | ||||
-rw-r--r-- | sensors/2.0/vts/functional/Android.bp | 3 | ||||
-rw-r--r-- | sensors/common/default/2.X/multihal/tests/Android.bp | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/sensors/1.0/vts/functional/Android.bp b/sensors/1.0/vts/functional/Android.bp index 9a92fb3150..274cfa7fd6 100644 --- a/sensors/1.0/vts/functional/Android.bp +++ b/sensors/1.0/vts/functional/Android.bp @@ -27,6 +27,9 @@ cc_test { name: "VtsHalSensorsV1_0TargetTest", cflags: ["-DLOG_TAG=\"sensors_hidl_hal_test\""], defaults: ["VtsHalTargetTestDefaults"], + tidy_timeout_srcs: [ + "VtsHalSensorsV1_0TargetTest.cpp", + ], srcs: [ "SensorsHidlEnvironmentV1_0.cpp", "VtsHalSensorsV1_0TargetTest.cpp", diff --git a/sensors/2.0/vts/functional/Android.bp b/sensors/2.0/vts/functional/Android.bp index cf7c9fae75..c4ec866fc1 100644 --- a/sensors/2.0/vts/functional/Android.bp +++ b/sensors/2.0/vts/functional/Android.bp @@ -27,6 +27,9 @@ cc_test { name: "VtsHalSensorsV2_0TargetTest", cflags: ["-DLOG_TAG=\"sensors_hidl_hal_test\""], defaults: ["VtsHalTargetTestDefaults"], + tidy_timeout_srcs: [ + "VtsHalSensorsV2_0TargetTest.cpp", + ], srcs: [ "VtsHalSensorsV2_0TargetTest.cpp", ], diff --git a/sensors/common/default/2.X/multihal/tests/Android.bp b/sensors/common/default/2.X/multihal/tests/Android.bp index d8e7ce6a5c..21d1d77abf 100644 --- a/sensors/common/default/2.X/multihal/tests/Android.bp +++ b/sensors/common/default/2.X/multihal/tests/Android.bp @@ -99,6 +99,9 @@ cc_test_library { cc_test { name: "android.hardware.sensors@2.X-halproxy-unit-tests", + tidy_timeout_srcs: [ + "HalProxy_test.cpp", + ], srcs: [ "HalProxy_test.cpp", "ScopedWakelock_test.cpp", |