Skip to content

Commit 2cf1852

Browse files
committed
samples: subsys: usb: hid-mouse: 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 3717c37 commit 2cf1852

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

samples/subsys/usb/hid-mouse/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CONFIG_USB_DEVICE_STACK_NEXT=y
22
CONFIG_USBD_HID_SUPPORT=y
33

44
CONFIG_LOG=y
5-
CONFIG_USBD_LOG_LEVEL_WRN=y
5+
CONFIG_USBD_LOG_LEVEL_INF=y
66
CONFIG_USBD_HID_LOG_LEVEL_WRN=y
77
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
88
CONFIG_SAMPLE_USBD_PID=0x0007

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ 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_device_next.hid-mouse:
1011
depends_on:
1112
- usbd
13+
timeout: 15
14+
harness: console
15+
harness_config:
16+
type: multi_line
17+
regex:
18+
- "HS bNumConfigurations 1"
19+
- "FS bNumConfigurations 1"
1220
integration_platforms:
1321
- nrf52840dk/nrf52840
1422
- nrf54h20dk/nrf54h20/cpuapp
@@ -18,4 +26,3 @@ tests:
1826
- nucleo_f413zh
1927
- mimxrt1060_evk/mimxrt1062/qspi
2028
- max32690evkit/max32690/m4
21-
tags: usb

0 commit comments

Comments
 (0)