aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-05-31 18:50:44 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit61fb99c80bba70080b48689560b0dc1fe1c5f01f (patch)
treeaffa3c519f1262ad0c4f674406a27ac0d6e17c01 /tests
parent3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243 (diff)
downloadportable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.tar.gz
portable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.tar.bz2
portable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.zip
fix cttest
added preload-file link flag to enable access to TEST_SOURCE_DIR
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f52a17b..a0d0606 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -323,6 +323,9 @@ add_executable(cttest cttest.c)
323target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) 323target_link_libraries(cttest ${OPENSSL_TEST_LIBS})
324set_source_files_properties(cttest.c PROPERTIES COMPILE_FLAGS 324set_source_files_properties(cttest.c PROPERTIES COMPILE_FLAGS
325 -DCTPATH=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") 325 -DCTPATH=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
326if(EMSCRIPTEN)
327 set_target_properties(cttest PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}")
328endif()
326add_platform_test(cttest cttest) 329add_platform_test(cttest cttest)
327 330
328# destest 331# destest