Skip to content

Commit 0411151

Browse files
committed
[nrf fromlist] samples: subsys: usb: hid-keyboard: Confirm operation with console
Use console logs to determine if sample operates correctly. Upstream PR #: 92432 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 52919f7 commit 0411151

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
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: multi_line
13+
ordered: false
14+
regex:
15+
- "HS bNumConfigurations 1"
16+
- "FS bNumConfigurations 1"
17+
- "HID keyboard sample is initialized"
18+
- "USBD message: VBUS ready"
19+
- "Actual device speed 2"
20+
- "s-in-status finished"
921
integration_platforms:
1022
- nrf52840dk/nrf52840
1123
- nrf54h20dk/nrf54h20/cpuapp
@@ -18,17 +30,13 @@ common:
1830
- samd21_xpro
1931
- same54_xpro
2032
tests:
21-
sample.usbd.hid-keyboard:
22-
tags: usb
33+
sample.usbd.hid-keyboard: {}
2334
sample.usbd.hid-keyboard.out-report:
24-
tags: usb
2535
extra_args:
2636
- EXTRA_DTC_OVERLAY_FILE="out_report.overlay"
2737
sample.usbd.hid-keyboard.large-report:
28-
tags: usb
2938
extra_args:
3039
- EXTRA_DTC_OVERLAY_FILE="large_in_report.overlay"
3140
sample.usbd.hid-keyboard.large-out-report:
32-
tags: usb
3341
extra_args:
3442
- EXTRA_DTC_OVERLAY_FILE="large_out_report.overlay"

0 commit comments

Comments
 (0)