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>
12 lines
207 B
YAML
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: (.*)"
|