Skip to content

Commit 3717c37

Browse files
committed
samples: subsys: usb: hid-keyboard: Confirm operation with console
Use console logs to determine if sample operates correctly. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 30a854f commit 3717c37

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
sample:
22
name: USB HID keyboard sample
33
common:
4-
harness: button
54
filter: dt_alias_exists("sw0") and dt_alias_exists("led0")
65
depends_on:
76
- usbd
87
- gpio
8+
tags: usb
9+
timeout: 15
10+
harness: console
11+
harness_config:
12+
type: one_line
13+
regex:
14+
- "HID keyboard sample is initialized"
915
integration_platforms:
1016
- nrf52840dk/nrf52840
1117
- nrf54h20dk/nrf54h20/cpuapp
@@ -18,17 +24,13 @@ common:
1824
- samd21_xpro
1925
- same54_xpro
2026
tests:
21-
sample.usbd.hid-keyboard:
22-
tags: usb
27+
sample.usbd.hid-keyboard: {}
2328
sample.usbd.hid-keyboard.out-report:
24-
tags: usb
2529
extra_args:
2630
- EXTRA_DTC_OVERLAY_FILE="out_report.overlay"
2731
sample.usbd.hid-keyboard.large-report:
28-
tags: usb
2932
extra_args:
3033
- EXTRA_DTC_OVERLAY_FILE="large_in_report.overlay"
3134
sample.usbd.hid-keyboard.large-out-report:
32-
tags: usb
3335
extra_args:
3436
- EXTRA_DTC_OVERLAY_FILE="large_out_report.overlay"

0 commit comments

Comments
 (0)