Skip to content

Commit 08768e1

Browse files
committed
[nrf fromtree] samples: subsys: usb: hid-keyboard: Confirm operation with console
Use console logs to determine if sample operates correctly. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit e0fcfa1)
1 parent fe70cbd commit 08768e1

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
@@ -17,17 +23,13 @@ common:
1723
- samd21_xpro
1824
- same54_xpro
1925
tests:
20-
sample.usbd.hid-keyboard:
21-
tags: usb
26+
sample.usbd.hid-keyboard: {}
2227
sample.usbd.hid-keyboard.out-report:
23-
tags: usb
2428
extra_args:
2529
- EXTRA_DTC_OVERLAY_FILE="out_report.overlay"
2630
sample.usbd.hid-keyboard.large-report:
27-
tags: usb
2831
extra_args:
2932
- EXTRA_DTC_OVERLAY_FILE="large_in_report.overlay"
3033
sample.usbd.hid-keyboard.large-out-report:
31-
tags: usb
3234
extra_args:
3335
- EXTRA_DTC_OVERLAY_FILE="large_out_report.overlay"

0 commit comments

Comments
 (0)