samples: posix: eventfd: Add harness in sample.yaml verifing the output

The sample does not provide a way to verify its operation
and causes fails on nrf platforms. Added regex checks in sample.yaml
so the sample can be verified.

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
This commit is contained in:
Maciej Perkowski 2020-06-15 13:15:23 +02:00 committed by Anas Nashif
commit 8b07ec1143

View file

@ -8,3 +8,16 @@ common:
tests:
sample.posix.eventfd:
tags: posix
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Writing 1 to efd"
- "Writing 2 to efd"
- "Writing 3 to efd"
- "Writing 4 to efd"
- "Completed write loop"
- "About to read"
- "Read 10 (0xa) from efd"
- "Finished"