diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 18:58:21 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | f149fbd99114127e06f97a9babd13ee1f520630b (patch) | |
tree | 9944f4aa477548c3e6a9a1ee19cc21ae62ee26e5 /tests | |
parent | caa700b1ca6f1031412cf625d211b80887e56a24 (diff) | |
download | portable-f149fbd99114127e06f97a9babd13ee1f520630b.tar.gz portable-f149fbd99114127e06f97a9babd13ee1f520630b.tar.bz2 portable-f149fbd99114127e06f97a9babd13ee1f520630b.zip |
fix keypairtest
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 56a60f4..67d15f1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -488,6 +488,9 @@ add_platform_test(key_schedule key_schedule) | |||
488 | add_executable(keypairtest keypairtest.c) | 488 | add_executable(keypairtest keypairtest.c) |
489 | target_link_libraries(keypairtest ${LIBTLS_TEST_LIBS}) | 489 | target_link_libraries(keypairtest ${LIBTLS_TEST_LIBS}) |
490 | target_include_directories(keypairtest BEFORE PUBLIC ../tls) | 490 | target_include_directories(keypairtest BEFORE PUBLIC ../tls) |
491 | if(EMSCRIPTEN) | ||
492 | set_target_properties(keypairtest PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
493 | endif() | ||
491 | add_platform_test(keypairtest keypairtest | 494 | add_platform_test(keypairtest keypairtest |
492 | ${CMAKE_CURRENT_SOURCE_DIR}/ca-root-rsa.pem | 495 | ${CMAKE_CURRENT_SOURCE_DIR}/ca-root-rsa.pem |
493 | ${CMAKE_CURRENT_SOURCE_DIR}/server1-rsa.pem | 496 | ${CMAKE_CURRENT_SOURCE_DIR}/server1-rsa.pem |