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:
parent
cb270a7ecf
commit
33a36df60b
7 changed files with 38 additions and 45 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
5
samples/subsys/settings/boards/native_sim.conf
Normal file
5
samples/subsys/settings/boards/native_sim.conf
Normal 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"
|
||||
22
samples/subsys/settings/boards/native_sim.overlay
Normal file
22
samples/subsys/settings/boards/native_sim.overlay
Normal 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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
5
samples/subsys/settings/boards/native_sim_64.conf
Normal file
5
samples/subsys/settings/boards/native_sim_64.conf
Normal 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"
|
||||
1
samples/subsys/settings/boards/native_sim_64.overlay
Normal file
1
samples/subsys/settings/boards/native_sim_64.overlay
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "native_sim.overlay"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue