summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/Kconfig
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2022-11-16 03:24:56 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-18 17:20:26 +0000
commitede61d51be526389bef177cbcd9b25a96743a6f4 (patch)
tree655d4795cdc9a90463a7f764bec972ffc26e25d0 /zephyr/test/drivers/Kconfig
parent2c07deae07162b1ce86bd5251c575408b4403f0a (diff)
downloadchrome-ec-ede61d51be526389bef177cbcd9b25a96743a6f4.tar.gz
test: add coverage to led_common.c
Exclude empty functions that cannot be tested. Also, add tests for the led_common function 'led_is_supported' BRANCH=none BUG=none TEST=twister Change-Id: I4d40edf49d025398f2a72e70d0a1847429cc15bf Signed-off-by: Yuval Peress <peress@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4030066 Reviewed-by: Tristan Honscheid <honscheid@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/test/drivers/Kconfig')
-rw-r--r--zephyr/test/drivers/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/test/drivers/Kconfig b/zephyr/test/drivers/Kconfig
index 07b387f2c6..a96cb0a5f1 100644
--- a/zephyr/test/drivers/Kconfig
+++ b/zephyr/test/drivers/Kconfig
@@ -130,4 +130,9 @@ config LINK_TEST_SUITE_MEMMAP
bool "Link and test memory mapped tests for common/flash.c"
select PLATFORM_EC_MAPPED_STORAGE
+config LINK_TEST_SUITE_LED_COMMON
+ bool "Link and test the led_common.c file"
+ depends on !PLATFORM_EC_LED_DT
+ select PLATFORM_EC_LED_COMMON
+
source "Kconfig.zephyr"