diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 18:33:38 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 50b726ce3798345511a8a06129f7aab1d7d9a567 (patch) | |
tree | f10558d7bbe4c67348c4127a250e5bf2cd67e0d0 /tests | |
parent | 66ef92de0e7cf40c712809848006c256f5e372e4 (diff) | |
download | portable-50b726ce3798345511a8a06129f7aab1d7d9a567.tar.gz portable-50b726ce3798345511a8a06129f7aab1d7d9a567.tar.bz2 portable-50b726ce3798345511a8a06129f7aab1d7d9a567.zip |
fix apitest
added preload-file link flag to enable access to TEST_SOURCE_DIR
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 |
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) | |||
58 | target_link_libraries(apitest ${OPENSSL_TEST_LIBS}) | 58 | target_link_libraries(apitest ${OPENSSL_TEST_LIBS}) |
59 | set_source_files_properties(apitest.c PROPERTIES COMPILE_FLAGS | 59 | set_source_files_properties(apitest.c PROPERTIES COMPILE_FLAGS |
60 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 60 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
61 | if(EMSCRIPTEN) | ||
62 | set_target_properties(apitest PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
63 | endif() | ||
61 | add_platform_test(apitest apitest) | 64 | add_platform_test(apitest apitest) |
62 | 65 | ||
63 | # arc4randomforktest | 66 | # arc4randomforktest |