diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 19:29:28 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 24ed53e196036f544d59271ca1aa3dbec3548717 (patch) | |
tree | 49100d9dc7889a667ded0144e158d8688007ea65 /tests | |
parent | 08664de74c39da767736a35480f9e4dc8af54131 (diff) | |
download | portable-24ed53e196036f544d59271ca1aa3dbec3548717.tar.gz portable-24ed53e196036f544d59271ca1aa3dbec3548717.tar.bz2 portable-24ed53e196036f544d59271ca1aa3dbec3548717.zip |
fix ssl_get_shared_ciphers
added preload-file link flag to enable access to TEST_SOURCE_DIR
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 12d4308..8755bf8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -674,7 +674,8 @@ endif() | |||
674 | set_tests_properties(shutdowntest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 674 | set_tests_properties(shutdowntest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
675 | 675 | ||
676 | # signertest | 676 | # signertest |
677 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") | 677 | # Emscripten does not support socketpair syscall. |
678 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) | ||
678 | set(SIGNERTEST_SRC signertest.c) | 679 | set(SIGNERTEST_SRC signertest.c) |
679 | check_function_exists(pipe2 HAVE_PIPE2) | 680 | check_function_exists(pipe2 HAVE_PIPE2) |
680 | if(HAVE_PIPE2) | 681 | if(HAVE_PIPE2) |
@@ -710,6 +711,9 @@ add_executable(ssl_get_shared_ciphers ssl_get_shared_ciphers.c) | |||
710 | set_source_files_properties(ssl_get_shared_ciphers.c PROPERTIES COMPILE_FLAGS | 711 | set_source_files_properties(ssl_get_shared_ciphers.c PROPERTIES COMPILE_FLAGS |
711 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 712 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
712 | target_link_libraries(ssl_get_shared_ciphers ${OPENSSL_TEST_LIBS}) | 713 | target_link_libraries(ssl_get_shared_ciphers ${OPENSSL_TEST_LIBS}) |
714 | if(EMSCRIPTEN) | ||
715 | set_target_properties(ssl_get_shared_ciphers PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
716 | endif() | ||
713 | add_platform_test(ssl_get_shared_ciphers ssl_get_shared_ciphers) | 717 | add_platform_test(ssl_get_shared_ciphers ssl_get_shared_ciphers) |
714 | 718 | ||
715 | # ssl_methods | 719 | # ssl_methods |