Skip to content

Commit b6f8eff

Browse files
JordanYateskartben
authored andcommitted
tests: fs: lib_link: added
Add a test validating that Zephyr can compile with the 3 underlying filesystems enabled with only `CONFIG_FILE_SYSTEM_LIB_LINK` enabled. Signed-off-by: Jordan Yates <[email protected]>
1 parent 946f6b5 commit b6f8eff

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(fs_lib_link)
6+
7+
FILE(GLOB app_sources src/*.c)
8+
target_sources(app PRIVATE ${app_sources})

tests/subsys/fs/lib_link/prj.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_FILE_SYSTEM_LIB_LINK=y
2+
CONFIG_FAT_FILESYSTEM_ELM=y
3+
CONFIG_FILE_SYSTEM_LITTLEFS=y
4+
CONFIG_FILE_SYSTEM_EXT2=y
5+
CONFIG_ZTEST=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Embeint Inc
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <string.h>
8+
#include <zephyr/ztest.h>
9+
10+
ZTEST_SUITE(lib_link, NULL, NULL, NULL, NULL, NULL);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tests:
2+
filesystem.lib_link:
3+
tags: filesystem
4+
integration_platforms:
5+
- native_sim

0 commit comments

Comments
 (0)