Skip to content

Commit 3c8def0

Browse files
djiatsaf-stcfriedt
authored andcommitted
samples: drivers: uart: async_api: add new scenario for console harness
- Add a console harness to filter console output and validate tests. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 51aba7f commit 3c8def0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

samples/drivers/uart/async_api/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@ tests:
2323
not CONFIG_CPU_HAS_DCACHE
2424
depends_on: dma
2525
harness: keyboard
26+
sample.drivers.uart.async_api.console:
27+
integration_platforms:
28+
- nucleo_g071rb/stm32g071xx
29+
filter: CONFIG_SERIAL and
30+
CONFIG_UART_ASYNC_API and
31+
dt_chosen_enabled("zephyr,shell-uart")
32+
harness: console
33+
harness_config:
34+
type: multi_line
35+
regex:
36+
- "Loop (.*) Sending (.*)"
37+
- "RX is now enabled"
38+
- "Loop (.*) Sending (.*)"
39+
- "RX is now disabled"

0 commit comments

Comments
 (0)