Skip to content

Commit 6e08612

Browse files
committed
[nrf fromlist] samples: subsys: usb: hid-mouse: 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 0411151 commit 6e08612

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

samples/subsys/usb/hid-mouse/sample.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,25 @@ common:
55
filter: dt_alias_exists("sw0") and dt_alias_exists("led0")
66
depends_on:
77
- gpio
8+
tags: usb
89
tests:
910
sample.usb.hid-mouse:
1011
depends_on:
1112
- usb_device
1213
platform_exclude:
1314
- frdm_mcxn947/mcxn947/cpu0
14-
tags: usb
1515
sample.usb_device_next.hid-mouse:
1616
depends_on:
1717
- usbd
18+
timeout: 15
19+
harness: console
20+
harness_config:
21+
type: multi_line
22+
regex:
23+
- "HS bNumConfigurations 1"
24+
- "FS bNumConfigurations 1"
25+
- "Actual device speed 2"
26+
- "s-in-status finished"
1827
integration_platforms:
1928
- nrf52840dk/nrf52840
2029
- nrf54h20dk/nrf54h20/cpuapp
@@ -27,4 +36,3 @@ tests:
2736
extra_args:
2837
- CONF_FILE="usbd_next_prj.conf"
2938
- EXTRA_DTC_OVERLAY_FILE="usbd_next.overlay"
30-
tags: usb

0 commit comments

Comments
 (0)