Skip to content

Commit e1949cf

Browse files
committed
Fix native_sim test overlays and configs
1 parent 66a7bac commit e1949cf

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

tests/common/native.overlay

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/delete-node/ &storage_partition;
2+
3+
&flash0 {
4+
partitions {
5+
compatible = "fixed-partitions";
6+
#address-cells = <1>;
7+
#size-cells = <1>;
8+
9+
storage_partition: partition@0 {
10+
label = "storage";
11+
reg = <0x00000000 0x00001000>;
12+
};
13+
};
14+
};

tests/persist_state/prj.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_LOG=y
3+
CONFIG_THREAD_NAME=y
4+
5+
# Match application crypto behavior
6+
CONFIG_APP_USE_AES_ENCRYPTION=y
7+
8+
# Dependencies used by persist_state.c
9+
CONFIG_FLASH=y
10+
CONFIG_FLASH_MAP=y
11+
CONFIG_FLASH_PAGE_LAYOUT=y
12+
CONFIG_NVS=y
13+
14+
# Keep stacks modest for native_sim
15+
CONFIG_MAIN_STACK_SIZE=2048
16+
CONFIG_HEAP_MEM_POOL_SIZE=2048

tests/supervisor/prj.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_LOG=y
3+
CONFIG_THREAD_NAME=y
4+
5+
CONFIG_MAIN_STACK_SIZE=2048
6+
CONFIG_HEAP_MEM_POOL_SIZE=2048
7+
8+
# Supervisor-specific knobs
9+
CONFIG_APP_SUPERVISOR_THREAD_STACK_SIZE=512
10+
CONFIG_APP_HEALTH_LED_STALE_MS=6500
11+
CONFIG_APP_HEALTH_SYS_STALE_MS=6500

0 commit comments

Comments
 (0)