tests: settings: Update test project structures

Update the structure to reduce redundancies with additional config
files needed for native_posix platforms that replicate most of the
same config values.

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2022-02-10 10:19:20 -07:00 committed by Anas Nashif
parent 7f90587e7e
commit d733153fe6
12 changed files with 21 additions and 99 deletions

View File

@ -1,9 +1,7 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ARM_MPU=n
CONFIG_FCB=y
CONFIG_SETTINGS=y

View File

@ -1,9 +0,0 @@
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_FCB=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FCB=y

View File

@ -1,9 +0,0 @@
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_FCB=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FCB=y

View File

@ -1,4 +1,10 @@
tests:
system.settings.fcb.raw:
platform_allow: nrf52840dk_nrf52840 nrf52dk_nrf52832 native_posix native_posix_64
platform_allow: nrf52840dk_nrf52840 nrf52dk_nrf52832
tags: settings_fcb
extra_configs:
- CONFIG_ARM_MPU=n
- CONFIG_STDOUT_CONSOLE=y
system.settings.fcb.raw_native_posix:
platform_allow: native_posix native_posix_64
tags: settings_fcb

View File

@ -2,11 +2,9 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ARM_MPU=n
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=1024

View File

@ -1,18 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y

View File

@ -1,18 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y

View File

@ -3,5 +3,11 @@
tests:
system.settings.littlefs.base64:
platform_allow: nrf52840dk_nrf52840 native_posix native_posix_64
platform_allow: nrf52840dk_nrf52840
tags: settings_fs filesystem
extra_configs:
- CONFIG_STDOUT_CONSOLE=y
- CONFIG_ARM_MPU=n
system.settings.littlefs.base64_native_posix:
platform_allow: native_posix native_posix_64
tags: settings_fs filesystem

View File

@ -2,11 +2,9 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ARM_MPU=n
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=1024

View File

@ -1,18 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y

View File

@ -1,18 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Nordic Semiconductor ASA
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y

View File

@ -3,5 +3,11 @@
tests:
system.settings.littlefs.raw:
platform_allow: nrf52840dk_nrf52840 native_posix native_posix_64
platform_allow: nrf52840dk_nrf52840
tags: settings_fs settings_littlefs
extra_configs:
- CONFIG_STDOUT_CONSOLE=y
- CONFIG_ARM_MPU=n
system.settings.littlefs.raw_native_posix:
platform_allow: native_posix native_posix_64
tags: settings_fs settings_littlefs