blob: 3c7f247a224749098280b330a97cca1d861e9e90 [file]
sample:
name: Settings Sample
common:
tags: settings
timeout: 20
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>"
tests:
sample.settings.nvs:
filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
or dt_label_compat_enabled("storage_partition", "zephyr,mapped-partition")
and not CONFIG_RISCV_CORE_NORDIC_VPR
platform_exclude:
- nucleo_f746zg
- nucleo_h723zg
- nucleo_h743zi
- nucleo_h745zi_q/stm32h745xx/m7
- stm32h745i_disco/stm32h745xx/m7
- nucleo_h753zi
- nucleo_h755zi_q/stm32h755xx/m7
- stm32h735g_disco
- stm32h747i_disco/stm32h747xx/m7
- stm32h750b_dk
- stm32h7s78_dk
- stm32n6570_dk/stm32n657xx/sb
- qemu_cortex_m0/nrf51822
integration_platforms:
- native_sim
extra_args:
- CONFIG_FLASH=y
- CONFIG_FLASH_MAP=y
- CONFIG_NVS=y
- CONFIG_SETTINGS_NVS=y
- CONFIG_MPU_ALLOW_FLASH_WRITE=y
sample.settings.tfm-ps:
timeout: 30
tags:
- trusted-firmware-m
filter: CONFIG_TFM_PARTITION_PROTECTED_STORAGE
integration_platforms:
- mps2/an521/cpu0/ns
extra_args:
- CONFIG_SETTINGS_TFM_PSA=y
- CONFIG_SETTINGS_TFM_PSA_BACKEND_PS=y
sample.settings.tfm-its:
tags:
- trusted-firmware-m
filter: CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
integration_platforms:
- mps2/an521/cpu0/ns
extra_args:
- CONFIG_SETTINGS_TFM_PSA=y
- CONFIG_SETTINGS_TFM_PSA_BACKEND_ITS=y