zephyr/samples/drivers/CAN/sample.yaml
Kumar Gala 41712b71b2 samples: CAN: Add testing harness
Add simple console testing harness for expected output.  This allows us
to validate that the test is running properly on hardware.

We expect the sample to report back somthing like:

Counter received: 1
Counter received: 2
Counter received: 3
Counter received: 4
...

etc.

So have a simple regex check for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-08-26 22:33:14 -04:00

12 lines
207 B
YAML

sample:
name: CAN driver sample
tests:
sample.drivers.can:
tags: CAN
depends_on: can
harness: console
harness_config:
type: one_line
regex:
- "Counter received: (.*)"