1sample:
2  name: Settings Sample
3
4common:
5  tags: settings
6  timeout: 20
7  harness: console
8  harness_config:
9    type: multi_line
10    regex:
11      - "subtree <alpha> handler registered: OK"
12      - "# iteration 0"
13      - "[.]*<alpha/length> value exist in the storage"
14      - "[.]*Can\\'t to load the <alpha/length> value as expected"
15      - "<gamma> = 0 \\(default\\)"
16      - "# iteration 1"
17      - "<alpha/length/2> = 59"
18      - "# iteration 2"
19      - "<alpha/length/1> = 42"
20      - "# iteration 3"
21      - "<alpha/beta/voltage> = -3100"
22      - "# iteration 4"
23      - "<alpha/beta/source> = abcd"
24      - "# iteration 5"
25      - "<alpha/angle/1> = 5"
26      - "<alpha/beta/source> is not compatible with the application"
27      - "direct.length = 100"
28      - "direct.length_1 = 46"
29      - "direct.length_2 = 54"
30      - "<gamma> = 5"
31      - "The settings destination off the key <alpha/beta/source> has got value:\
32        \ \"RT\""
33      - "String value \"rtos\" was retrieved from the settings destination off the\
34        \ key <alpha/beta/source>"
35
36tests:
37  sample.subsys.settings.nvs:
38    filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
39    platform_exclude:
40      - nucleo_h723zg
41      - stm32h735g_disco
42      - nucleo_h743zi
43      - stm32h745i_disco/stm32h745xx/m7
44      - nucleo_h745zi_q/stm32h745xx/m7
45      - stm32h747i_disco/stm32h747xx/m7
46      - stm32h750b_dk
47      - nucleo_h753zi
48      - nucleo_h755zi_q/stm32h755xx/m7
49      - qemu_cortex_m0/nrf51822
50    integration_platforms:
51      - native_sim
52    extra_args:
53      - CONFIG_FLASH=y
54      - CONFIG_FLASH_MAP=y
55      - CONFIG_NVS=y
56      - CONFIG_SETTINGS_NVS=y
57      - CONFIG_MPU_ALLOW_FLASH_WRITE=y
58
59  sample.subsys.settings.tfm-ps:
60    tags:
61      - trusted-firmware-m
62    filter: CONFIG_TFM_PARTITION_PROTECTED_STORAGE
63    integration_platforms:
64      - mps2/an521/cpu0/ns
65    extra_args:
66      - CONFIG_SETTINGS_TFM_PSA=y
67      - CONFIG_SETTINGS_TFM_PSA_BACKEND_PS=y
68
69  sample.subsys.settings.tfm-its:
70    tags:
71      - trusted-firmware-m
72    filter: CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
73    integration_platforms:
74      - mps2/an521/cpu0/ns
75    extra_args:
76      - CONFIG_SETTINGS_TFM_PSA=y
77      - CONFIG_SETTINGS_TFM_PSA_BACKEND_ITS=y
78