From 0e8cc1182cddb379dc0e45559ec216c780e4c756 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Mon, 4 Nov 2024 14:13:37 +0000 Subject: [PATCH] Re-add tests/include and tests/src paths to tests Some tests need the SSL-related parts of tests/include and tests/src which stayed in Mbed TLS. Add these parts to the mbedtls_test target Signed-off-by: David Horstmann --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca798820e4..c6d31dc114 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -347,6 +347,7 @@ add_subdirectory(pkgconfig) # if(ENABLE_TESTING OR ENABLE_PROGRAMS) file(GLOB MBEDTLS_TEST_FILES + ${CMAKE_CURRENT_SOURCE_DIR}/tests/src/*.c ${CMAKE_CURRENT_SOURCE_DIR}/framework/tests/src/*.c ${CMAKE_CURRENT_SOURCE_DIR}/framework/tests/src/drivers/*.c) add_library(mbedtls_test OBJECT ${MBEDTLS_TEST_FILES}) @@ -383,6 +384,7 @@ if(ENABLE_TESTING OR ENABLE_PROGRAMS) endif() target_include_directories(mbedtls_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/framework/tests/include + PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tests/include PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/library) # Request C11, needed for memory poisoning tests