mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-01 08:47:49 +00:00
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 <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user