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:
parent
42c09c99e9
commit
d518f6a784
1 changed files with 32 additions and 0 deletions
32
samples/subsys/settings/sample.yaml
Normal file
32
samples/subsys/settings/sample.yaml
Normal 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>"
|
Loading…
Add table
Add a link
Reference in a new issue