samples/subsys/settings: Switch from native_posix to native_sim

Switch from native_posix to native_sim as default test platform
Add conf and DT overlays for native_sim.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-11-16 12:46:12 +01:00 committed by Carles Cufí
parent cb270a7ecf
commit 33a36df60b
7 changed files with 38 additions and 45 deletions

View file

@ -1,22 +1 @@
/*
* 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 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@70000 {
label = "storage";
reg = <0x00070000 0x8000>;
};
};
};
#include "native_sim.overlay"

View file

@ -1,22 +1 @@
/*
* 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 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@70000 {
label = "storage";
reg = <0x00070000 0x8000>;
};
};
};
#include "native_sim.overlay"

View file

@ -0,0 +1,5 @@
# Enable the LittleFS file system.
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS_FILE=y
CONFIG_SETTINGS_FILE_PATH="/ff/settings/run"

View file

@ -0,0 +1,22 @@
/*
* 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 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@70000 {
label = "storage";
reg = <0x00070000 0x8000>;
};
};
};

View file

@ -0,0 +1,5 @@
# Enable the LittleFS file system.
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_SETTINGS_FILE=y
CONFIG_SETTINGS_FILE_PATH="/ff/settings/run"

View file

@ -0,0 +1 @@
#include "native_sim.overlay"

View file

@ -9,9 +9,11 @@ tests:
- qemu_x86
- native_posix
- native_posix_64
- native_sim
- native_sim_64
- mr_canhubk3
integration_platforms:
- native_posix
- native_sim
harness: console
harness_config:
type: multi_line