mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 15:39:53 +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 <david.horstmann@arm.com>
This commit is contained in:
parent
7d81e8a243
commit
0e8cc1182c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user