1sample:
2  name: Counter RTC Driver Sample
3common:
4  tags:
5    - drivers
6    - counter
7  harness: console
8  harness_config:
9    type: multi_line
10    ordered: true
11    regex:
12      - "Counter alarm sample"
13      - "Set alarm in 2 sec"
14      - "!!! Alarm !!!"
15      - "Now: [2|3]"
16  depends_on: counter
17tests:
18  sample.drivers.counter.alarm:
19    platform_allow:
20      - nucleo_f746zg
21      - nrf51dk/nrf51822
22      - nrf52dk/nrf52832
23      - nrf52840dk/nrf52840
24      - nrf9160dk/nrf9160
25      - samd20_xpro
26      - bl5340_dvk/nrf5340/cpuapp
27      - gd32e103v_eval
28      - gd32e507z_eval
29      - gd32f403z_eval
30      - gd32f450i_eval
31      - gd32f450z_eval
32      - gd32e507v_start
33      - gd32f407v_start
34      - gd32f450v_start
35      - gd32f470i_eval
36      - stm32h735g_disco
37      - stm32h573i_dk
38      - rpi_pico
39      - mr_canhubk3
40      - s32z2xxdc2/s32z270/rtu0
41      - s32z2xxdc2/s32z270/rtu1
42      - s32z2xxdc2@D/s32z270/rtu0
43      - s32z2xxdc2@D/s32z270/rtu1
44    integration_platforms:
45      - nucleo_f746zg
46  sample.drivers.counter.alarm.stm32_rtc:
47    # This test case is needed because when Timer Counter is available,
48    # RTC Counter will never be selected in the test.
49    # CONFIG_COUNTER_RTC_STM32 flag is enabled by default when RTC is enabled.
50    filter: CONFIG_SOC_FAMILY_STM32 and CONFIG_COUNTER_RTC_STM32
51    extra_configs:
52      # Timer Counter flag needs to be disabled for RTC node to be selected
53      - CONFIG_COUNTER_TIMER_STM32=n
54    tags:
55      - rtc
56