Skip to content

Commit

Permalink
tests: enable flash tests for s32z board
Browse files Browse the repository at this point in the history
Enable flash tests for s32z board

Signed-off-by: Cong Nguyen Huu <[email protected]>
  • Loading branch information
congnguyenhuu committed Oct 21, 2024
1 parent 6a082ff commit 29a5fdd
Show file tree
Hide file tree
Showing 19 changed files with 264 additions and 1 deletion.
13 changes: 13 additions & 0 deletions tests/subsys/fs/fcb/boards/s32z2xxdc2_s32z270_rtu0.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&s26hs512t {
partitions {
slot1_partition: partition@0 {
reg = <0x000000 0x10000>;
};
};
};
13 changes: 13 additions & 0 deletions tests/subsys/fs/fcb/boards/s32z2xxdc2_s32z270_rtu1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&s26hs512t {
partitions {
slot1_partition: partition@0 {
reg = <0x000000 0x10000>;
};
};
};
4 changes: 4 additions & 0 deletions tests/subsys/fs/fcb/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags: flash_circural_buffer
integration_platforms:
- nrf52840dk/nrf52840
Expand Down
24 changes: 24 additions & 0 deletions tests/subsys/fs/littlefs/boards/s32z2xxdc2_s32z270_rtu0.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&s26hs512t {
partitions {
small_partition: partition@0 {
label = "small";
reg = <0x00000000 0x00010000>;
};
medium_partition: partition@10000 {
label = "medium";
reg = <0x00010000 0x000F0000>;
};
large_partition: partition@100000 {
label = "large";
reg = <0x00100000 0x00300000>;
};
};
};
24 changes: 24 additions & 0 deletions tests/subsys/fs/littlefs/boards/s32z2xxdc2_s32z270_rtu1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&s26hs512t {
partitions {
small_partition: partition@0 {
label = "small";
reg = <0x00000000 0x00010000>;
};
medium_partition: partition@10000 {
label = "medium";
reg = <0x00010000 0x000F0000>;
};
large_partition: partition@100000 {
label = "large";
reg = <0x00100000 0x00300000>;
};
};
};
7 changes: 6 additions & 1 deletion tests/subsys/fs/littlefs/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ common:
tests:
filesystem.littlefs.default:
timeout: 60
platform_allow: nrf54l15dk/nrf54l15/cpuapp
platform_allow:
- nrf54l15dk/nrf54l15/cpuapp
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
filesystem.littlefs.custom:
timeout: 180
extra_configs:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
mount-point = "/lfs1";
partition = <&lfs1_part>;
read-size = <16>;
prog-size = <16>;
cache-size = <64>;
lookahead-size = <32>;
block-cycles = <512>;
};
};
};

&s26hs512t {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
lfs1_part: partition@0 {
label = "storage";
reg = <0x00000000 0x00010000>;
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
mount-point = "/lfs1";
partition = <&lfs1_part>;
read-size = <16>;
prog-size = <16>;
cache-size = <64>;
lookahead-size = <32>;
block-cycles = <512>;
};
};
};

&s26hs512t {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
lfs1_part: partition@0 {
label = "storage";
reg = <0x00000000 0x00010000>;
};
};
};
4 changes: 4 additions & 0 deletions tests/subsys/logging/log_backend_fs/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ common:
- native_sim/native/64
- nrf52840dk/nrf52840
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- native_sim
tests:
Expand Down
4 changes: 4 additions & 0 deletions tests/subsys/settings/fcb/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- nrf52840dk/nrf52840
- native_sim
Expand Down
16 changes: 16 additions & 0 deletions tests/subsys/settings/file/boards/s32z2xxdc2_s32z270_rtu0.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&s26hs512t {
partitions {
settings_file_partition: partition@0 {
label = "settings_file_partition";
reg = <0x00000000 0x00010000>;
};
};
};
16 changes: 16 additions & 0 deletions tests/subsys/settings/file/boards/s32z2xxdc2_s32z270_rtu1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&s26hs512t {
partitions {
settings_file_partition: partition@0 {
label = "settings_file_partition";
reg = <0x00000000 0x00010000>;
};
};
};
4 changes: 4 additions & 0 deletions tests/subsys/settings/file/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags:
- settings
- file
Expand Down
8 changes: 8 additions & 0 deletions tests/subsys/settings/functional/fcb/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- nrf52840dk/nrf52840
tags:
Expand All @@ -17,6 +21,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- native_sim
tags:
Expand Down
4 changes: 4 additions & 0 deletions tests/subsys/settings/functional/file/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- native_sim
tags:
Expand Down
12 changes: 12 additions & 0 deletions tests/subsys/settings/functional/nvs/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ tests:
- qemu_x86
- native_sim
- native_sim/native/64
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags:
- settings
- nvs
Expand All @@ -12,6 +16,10 @@ tests:
platform_allow:
- native_sim
- native_sim/native/64
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags:
- settings
- nvs
Expand All @@ -20,6 +28,10 @@ tests:
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- nrf52840dk/nrf52840
tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "../app.overlay"

&s26hs512t {
partitions {
slot1_partition: partition@100000 {
reg = <0x100000 0x100000>;
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "../app.overlay"

&s26hs512t {
partitions {
slot1_partition: partition@100000 {
reg = <0x100000 0x100000>;
};
};
};
12 changes: 12 additions & 0 deletions tests/subsys/storage/flash_map/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags: flash_map
integration_platforms:
- native_sim
Expand All @@ -30,6 +34,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags: flash_map
integration_platforms:
- native_sim
Expand All @@ -40,6 +48,10 @@ tests:
- native_sim
- native_sim/native/64
- mr_canhubk3
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
tags: flash_map
integration_platforms:
- native_sim

0 comments on commit 29a5fdd

Please sign in to comment.