aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2021-12-15 04:23:22 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-12-21 12:12:25 +0300
commitbf50d9535f4641c55bbe576a74f91f8fc0665d3e (patch)
tree1e41b22cc4051a0ae3a03c498e79982f48b80cf1 /CMakeLists.txt
parent5066a5ec83976a283f676b0386e0cb15fd7378dc (diff)
downloadgost-engine-bf50d9535f4641c55bbe576a74f91f8fc0665d3e.zip
gost-engine-bf50d9535f4641c55bbe576a74f91f8fc0665d3e.tar.gz
gost-engine-bf50d9535f4641c55bbe576a74f91f8fc0665d3e.tar.bz2
test_tls: Rework test to be single process
Rework the test to be similar to sslapitest.c. Using BIO only connections and non-blocking IO instead of socketpair and separate processes. This will allow it to compile and work on Windows. Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 6 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8461be8..b4e6aea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -269,13 +269,11 @@ add_test(NAME sign/verify-with-engine COMMAND test_sign)
set_tests_properties(sign/verify-with-engine
PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
-if(NOT MSVC)
- add_executable(test_tls test_tls.c)
- target_link_libraries(test_tls OpenSSL::SSL)
- add_test(NAME TLS-with-engine COMMAND test_tls)
- set_tests_properties(TLS-with-engine
- PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
-endif()
+add_executable(test_tls test_tls.c)
+target_link_libraries(test_tls OpenSSL::SSL)
+add_test(NAME TLS-with-engine COMMAND test_tls)
+set_tests_properties(TLS-with-engine
+ PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE}")
add_executable(test_context test_context.c)
target_link_libraries(test_context OpenSSL::Crypto)
@@ -329,10 +327,8 @@ set(BINARY_TESTS_TARGETS
test_context
test_keyexpimp
test_gost89
+ test_tls
)
-if(NOT MSVC)
- list(APPEND BINARY_TESTS_TARGETS test_tls)
-endif()
set_property(TARGET ${BINARY_TESTS_TARGETS} APPEND PROPERTY COMPILE_DEFINITIONS ENGINE_DIR="${OUTPUT_DIRECTORY}")
add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES})