Skip to content
Permalink
Browse files

samples: usb: hid: Enable harness for the sample

Enable harness so we can execute smoke tests on the hardware with
command line:
sanitycheck --device-testing --device-serial /dev/ttyACM0 -p <BOARD>
  -T samples/subsys/usb/hid

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and nashif committed Mar 22, 2019
1 parent 689d71b commit 35a81562e8df2633513006755bab706a37b9d784
@@ -2,14 +2,19 @@ sample:
name: CDC ACM USB
tests:
sample.usb.cdc-acm:
depends_on: usb_device
depends_on: usb_device gpio
tags: usb
harness: console
harness_config:
type: one_line
regex:
- "Wait for DTR"
sample.usb.cdc-acm.comp:
depends_on: usb_device
depends_on: usb_device gpio
tags: usb
extra_args: "-DOVERLAY_CONFIG=overlay-composite-cdc-msc.conf"
harness: console
harness_config:
type: one_line
regex:
- "Wait for DTR"
@@ -2,5 +2,10 @@ sample:
name: CDC ACM Composite USB
tests:
sample.usb.cdc-acm-composite:
depends_on: usb_device
depends_on: usb_device gpio
tags: usb
harness: console
harness_config:
type: one_line
regex:
- "Wait for DTR"
@@ -3,18 +3,21 @@ sample:
tests:
sample.usb.hid:
depends_on: usb_device
platform_whitelist: quark_se_c1000_devboard
tags: usb
harness: console
harness_config:
type: multi_line
regex:
- "main: Starting application"
- "main: HID Device: dev"
sample.usb.hid_composite:
depends_on: usb_device
extra_configs:
- CONFIG_USB_COMPOSITE_DEVICE=y
platform_whitelist: quark_se_c1000_devboard
tags: usb
sample.usb.hid_msc_composite:
depends_on: usb_device
extra_configs:
- CONFIG_USB_COMPOSITE_DEVICE=y
- CONFIG_USB_MASS_STORAGE=y
platform_whitelist: quark_se_c1000_devboard
tags: usb
harness: console
harness_config:
type: multi_line
regex:
- "composite_pre_init: HID Device: dev"
- "main: Starting application"
@@ -4,3 +4,4 @@ tests:
sample.usb.loopback:
depends_on: usb_device
tags: usb
harness: button

0 comments on commit 35a8156

Please sign in to comment.
You can’t perform that action at this time.