From 8b07ec114348f657695102e7ea741b6465f5d16a Mon Sep 17 00:00:00 2001 From: Maciej Perkowski Date: Mon, 15 Jun 2020 13:15:23 +0200 Subject: [PATCH] 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 --- samples/posix/eventfd/sample.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/samples/posix/eventfd/sample.yaml b/samples/posix/eventfd/sample.yaml index 50836e5b99a..80c8c7cb02c 100644 --- a/samples/posix/eventfd/sample.yaml +++ b/samples/posix/eventfd/sample.yaml @@ -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"