samples/subsys/settings: add test harness

Added Harness in sample.yaml

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2020-01-17 14:53:05 +01:00 committed by Anas Nashif
commit d518f6a784

View file

@ -0,0 +1,32 @@
sample:
name: Settings Sample
tests:
sample.subsys.settings:
tags: settings
timeout: 10
platform_whitelist: qemu_x86
harness: console
harness_config:
type: multi_line
regex:
- "subtree <alpha> handler registered: OK"
- "# iteration 0"
- "[.]*<alpha/length> value exist in the storage"
- "[.]*Can\\'t to load the <alpha/length> value as expected"
- "<gamma> = 0 \\(default\\)"
- "# iteration 1"
- "# iteration 4"
- "<alpha/beta/source> = abcd"
- "# iteration 5"
- "<alpha/length/2> = 55"
- "<alpha/length/1> = 45"
- "<alpha/angle/1> = 5"
- "<alpha/beta/source> is not compatible with the application"
- "<alpha/beta/voltage> = -3125"
- "direct.length = 100"
- "direct.length_1 = 46"
- "direct.length_2 = 54"
- "<gamma> = 5"
- "The settings destination off the key <alpha/beta/source> has got value: \"RT\""
- "String value \"rtos\" was retrieved from the settings destination off the key <alpha/beta/source>"