2020-01-17 21:53:05 +08:00
|
|
|
sample:
|
|
|
|
name: Settings Sample
|
|
|
|
|
|
|
|
tests:
|
|
|
|
sample.subsys.settings:
|
|
|
|
tags: settings
|
|
|
|
timeout: 10
|
2020-08-26 23:28:25 +08:00
|
|
|
platform_allow: qemu_x86 native_posix native_posix_64
|
2020-01-17 21:53:05 +08:00
|
|
|
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"
|
2020-01-20 20:14:56 +08:00
|
|
|
- "<alpha/length/2> = 59"
|
|
|
|
- "# iteration 2"
|
|
|
|
- "<alpha/length/1> = 42"
|
|
|
|
- "# iteration 3"
|
|
|
|
- "<alpha/beta/voltage> = -3100"
|
2020-01-17 21:53:05 +08:00
|
|
|
- "# iteration 4"
|
|
|
|
- "<alpha/beta/source> = abcd"
|
|
|
|
- "# iteration 5"
|
|
|
|
- "<alpha/angle/1> = 5"
|
|
|
|
- "<alpha/beta/source> is not compatible with the application"
|
|
|
|
- "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>"
|