napt: Added unit tests for napt

This commit is contained in:
Abhik Roy
2025-02-04 02:36:10 +00:00
parent fa4dffdfac
commit 865d7d0cae
8 changed files with 267 additions and 2 deletions
+1
View File
@@ -36,6 +36,7 @@ add_executable(lwip_unittests ${LWIP_TESTFILES})
target_include_directories(lwip_unittests PRIVATE ${LWIP_INCLUDE_DIRS})
target_compile_options(lwip_unittests PRIVATE ${LWIP_COMPILER_FLAGS})
target_compile_definitions(lwip_unittests PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
target_link_options(lwip_unittests PRIVATE -Wl,--wrap=mem_free)
find_library(LIBCHECK check)
find_library(LIBM m)
+1 -1
View File
@@ -51,7 +51,7 @@ endif
SYSARCH?=
include ../Common.mk
LDFLAGS:=-lcheck -lm $(LDFLAGS)
LDFLAGS:=-lcheck -lm $(LDFLAGS) -Wl,--wrap=mem_free
ifneq ($(UNAME_S),Darwin)
# check installed via brew on Darwin doesn't have a separate subunit library (must be statically linked)