1sample:
2  name: STM32 GPIO Power Management
3tests:
4  sample.boards.stm32.power_mgmt.standby_shutdown:
5    platform_allow:
6      - nucleo_l476rg
7      - disco_l475_iot1
8    tags:
9      - LED
10      - power
11    harness: console
12    harness_config:
13      type: multi_line
14      regex:
15        - "Reset cause: Reset pin"
16        - "Device ready: .*"
17        - "Press and hold the user button:"
18        - "when LED2 is OFF to power off"
19        - "when LED2 is ON to enter to Standby Mode"
20    filter: dt_compat_enabled("zephyr,power-state") and dt_enabled_alias_with_parent_compat("led0",
21      "gpio-leds") and dt_compat_enabled("st,stm32-lptim")
22    extra_args: "CONFIG_DEBUG=y"
23