Skip to content

Commit a01ffef

Browse files
committed
Adapt end to end tests for filesystem file transfer
Signed-off-by: Simone Orru <simone.orru@secomind.com>
1 parent 2fc3b1b commit a01ffef

8 files changed

Lines changed: 185 additions & 223 deletions

File tree

e2e/boards/native_sim.overlay

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/ {
8+
fstab {
9+
compatible = "zephyr,fstab";
10+
lfs1: lfs1 {
11+
compatible = "zephyr,fstab,littlefs";
12+
mount-point = "/lfs1";
13+
partition = <&lfs1_partition>;
14+
automount;
15+
read-size = <16>;
16+
prog-size = <16>;
17+
cache-size = <64>;
18+
lookahead-size = <32>;
19+
block-cycles = <512>;
20+
};
21+
};
22+
};
23+
724
&flash0 {
825
partitions {
926
astarte_partition: partition@100000 {
@@ -14,5 +31,9 @@
1431
label = "edgehog";
1532
reg = <0x00120000 DT_SIZE_K(128)>;
1633
};
34+
lfs1_partition: partition@140000 {
35+
label = "lfs1";
36+
reg = <0x00140000 DT_SIZE_K(256)>;
37+
};
1738
};
1839
};

e2e/boards/qemu_x86.overlay

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/ {
8+
fstab {
9+
compatible = "zephyr,fstab";
10+
lfs1: lfs1 {
11+
compatible = "zephyr,fstab,littlefs";
12+
mount-point = "/lfs1";
13+
partition = <&lfs1_partition>;
14+
automount;
15+
read-size = <16>;
16+
prog-size = <16>;
17+
cache-size = <64>;
18+
lookahead-size = <32>;
19+
block-cycles = <512>;
20+
};
21+
};
22+
};
23+
724
&flash_sim0 {
825
partitions {
926
astarte_partition: partition@41000 {
@@ -14,5 +31,9 @@
1431
label = "edgehog";
1532
reg = <0x00051000 0x00010000>;
1633
};
34+
lfs1_partition: partition@61000 {
35+
label = "lfs1";
36+
reg = <0x00061000 0x00040000>;
37+
};
1738
};
1839
};

e2e/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,7 @@ CONFIG_ZBUS=y
183183

184184
# Activate thread naming
185185
CONFIG_THREAD_NAME=y
186+
187+
# Enable File System and LittleFS
188+
CONFIG_FILE_SYSTEM=y
189+
CONFIG_FILE_SYSTEM_LITTLEFS=y

0 commit comments

Comments
 (0)