Skip to content

Commit 6008841

Browse files
Holt-Sunnashif
authored andcommitted
tests: counter: add mcux LPTMR alarm mode coverage
Extend the counter_basic_api tests with a dedicated configuration that enables the MCUX LPTMR driver in alarm mode. The new testcase: - Selects CONFIG_COUNTER_MCUX_LPTMR_ALARM - Runs the existing counter_basic_api suite against nxp_lptmr devices when built for a board that instantiates the LPTMR This verifies that the alarm-only LPTMR configuration passes the common counter API tests without relying on the TOP callback feature. Signed-off-by: Holt Sun <holt.sun@nxp.com>
1 parent fba7c3e commit 6008841

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/drivers/counter/counter_basic_api/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ tests:
5151
- CONFIG_TEST_DRIVER_COUNTER_MCUX_LPC_RTC_HIGHRES=n
5252
extra_args:
5353
DTC_OVERLAY_FILE="enable_standby.overlay"
54+
drivers.counter.basic_api.mcux_lptmr_alarm:
55+
tags:
56+
- drivers
57+
- counter
58+
filter: dt_compat_enabled("nxp,lptmr")
59+
depends_on: counter
60+
timeout: 600
61+
extra_configs:
62+
- CONFIG_COUNTER_MCUX_LPTMR_ALARM=y

0 commit comments

Comments
 (0)