zephyr/samples/subsys/settings/sample.yaml
Anas Nashif 270c4e4cab samples: settings: cleanup and use filters
Almost all overlays only enable NVS and SETTINGS_NVS, something that
should be enabled in sample directly. Remove all overlays and make the
sample more genenric.

Use filter on storage partition to enable testing the sample on more
plaforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-07 19:54:38 +01:00

41 lines
1.3 KiB
YAML

sample:
name: Settings Sample
tests:
sample.subsys.settings:
tags: settings
timeout: 10
filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
platform_exclude:
- qemu_cortex_m0/nrf51822
integration_platforms:
- native_sim
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"
- "<alpha/length/2> = 59"
- "# iteration 2"
- "<alpha/length/1> = 42"
- "# iteration 3"
- "<alpha/beta/voltage> = -3100"
- "# 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>"