aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-05-31 18:33:38 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit50b726ce3798345511a8a06129f7aab1d7d9a567 (patch)
treef10558d7bbe4c67348c4127a250e5bf2cd67e0d0
parent66ef92de0e7cf40c712809848006c256f5e372e4 (diff)
downloadportable-50b726ce3798345511a8a06129f7aab1d7d9a567.tar.gz
portable-50b726ce3798345511a8a06129f7aab1d7d9a567.tar.bz2
portable-50b726ce3798345511a8a06129f7aab1d7d9a567.zip
fix apitest
added preload-file link flag to enable access to TEST_SOURCE_DIR
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5788805..5c7edba 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -58,6 +58,9 @@ add_executable(apitest apitest.c)
58target_link_libraries(apitest ${OPENSSL_TEST_LIBS}) 58target_link_libraries(apitest ${OPENSSL_TEST_LIBS})
59set_source_files_properties(apitest.c PROPERTIES COMPILE_FLAGS 59set_source_files_properties(apitest.c PROPERTIES COMPILE_FLAGS
60 -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") 60 -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
61if(EMSCRIPTEN)
62 set_target_properties(apitest PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}")
63endif()
61add_platform_test(apitest apitest) 64add_platform_test(apitest apitest)
62 65
63# arc4randomforktest 66# arc4randomforktest