Skip to content
Permalink
Browse files

tests: Added native POSIX to flash based tests

Added native POSIX boards as target for flash related tests.

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
  • Loading branch information...
vanwinkeljan authored and nashif committed Jan 2, 2019
1 parent 88964b9 commit afdbc20364f4fae59adf6c4db9a5673b014f2bc9
@@ -0,0 +1,6 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_BLOCK_BUF_SIZE=512
@@ -1,5 +1,4 @@
tests:
usb.device.image_util:
depends_on: usb_device
platform_whitelist: nrf52840_pca10056
dfu.image_util:
platform_whitelist: nrf52840_pca10056 native_posix
tags: dfu_image_util
@@ -0,0 +1,6 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_BLOCK_BUF_SIZE=512
@@ -1,5 +1,4 @@
tests:
usb.device.dfu:
depends_on: usb_device
platform_whitelist: nrf52840_pca10056
dfu.mcuboot:
platform_whitelist: nrf52840_pca10056 native_posix
tags: dfu_mcuboot
@@ -0,0 +1,11 @@
CONFIG_FILE_SYSTEM=y
CONFIG_LOG=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_DISK_ACCESS_FLASH=y
CONFIG_DISK_FLASH_DEV_NAME="flash_ctrl"
CONFIG_DISK_FLASH_START=0
CONFIG_DISK_FLASH_MAX_RW_SIZE=256
CONFIG_DISK_ERASE_BLOCK_SIZE=0x1000
CONFIG_DISK_FLASH_ERASE_ALIGNMENT=0x1000
CONFIG_DISK_VOLUME_SIZE=0x200000
CONFIG_ZTEST=y
@@ -1,4 +1,4 @@
tests:
filesystem.fat:
platform_whitelist: arduino_101
platform_whitelist: arduino_101 native_posix
tags: filesystem
@@ -0,0 +1,6 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_FCB=y
@@ -1,4 +1,5 @@
tests:
filesystem.fcb:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028
native_posix
tags: flash_circural_buffer
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;
/delete-node/ &scratch_partition;

&flash0 {
/*
* For more information, see:
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@70000 {
label = "storage";
reg = <0x00070000 0x10000>;
};
};
};
@@ -0,0 +1,11 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=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
CONFIG_SETTINGS_USE_BASE64=y
@@ -1,4 +1,4 @@
tests:
system.settings.fcb:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 native_posix
tags: settings_fcb
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;
/delete-node/ &scratch_partition;

&flash0 {
/*
* For more information, see:
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@70000 {
label = "storage";
reg = <0x00070000 0x10000>;
};
};
};
@@ -0,0 +1,11 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=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
CONFIG_SETTINGS_USE_BASE64=n
@@ -1,4 +1,4 @@
tests:
system.settings.fcb:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 native_posix
tags: settings_fcb
@@ -0,0 +1,27 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=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=1024

CONFIG_FILE_SYSTEM=y
CONFIG_LOG=y
CONFIG_FILE_SYSTEM_NFFS=y
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"
CONFIG_FS_NFFS_NUM_FILES=4
CONFIG_FS_NFFS_NUM_DIRS=4
CONFIG_FS_NFFS_NUM_INODES=1024
CONFIG_FS_NFFS_NUM_BLOCKS=1024
CONFIG_FS_NFFS_NUM_CACHE_INODES=1
CONFIG_FS_NFFS_NUM_CACHE_BLOCKS=1
CONFIG_FILE_SYSTEM_NFFS=y
CONFIG_NFFS_FILESYSTEM_MAX_AREAS=12

CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y
CONFIG_SETTINGS_USE_BASE64=y
@@ -1,4 +1,4 @@
tests:
system.settings.nffs:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 native_posix
tags: settings_fs filesystem
@@ -0,0 +1,26 @@
CONFIG_ZTEST=y
CONFIG_STDOUT_CONSOLE=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=1024

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_NFFS=y
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"
CONFIG_FS_NFFS_NUM_FILES=4
CONFIG_FS_NFFS_NUM_DIRS=4
CONFIG_FS_NFFS_NUM_INODES=1024
CONFIG_FS_NFFS_NUM_BLOCKS=1024
CONFIG_FS_NFFS_NUM_CACHE_INODES=1
CONFIG_FS_NFFS_NUM_CACHE_BLOCKS=1
CONFIG_FILE_SYSTEM_NFFS=y
CONFIG_NFFS_FILESYSTEM_MAX_AREAS=12

CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS_FS=y
CONFIG_SETTINGS_USE_BASE64=n
@@ -1,4 +1,4 @@
tests:
system.settings.nffs:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 native_posix
tags: settings_fs
@@ -0,0 +1,4 @@
CONFIG_ZTEST=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
@@ -1,5 +1,5 @@
tests:
storage.flash_map:
platform_whitelist: nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028
frdm_k64f hexiwear_k64 qemu_x86
frdm_k64f hexiwear_k64 qemu_x86 native_posix
tags: flash_map

0 comments on commit afdbc20

Please sign in to comment.
You can’t perform that action at this time.