aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1ed0396..c560aab 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -762,12 +762,16 @@ if(NOT EMSCRIPTEN)
762endif() 762endif()
763 763
764# testenc 764# testenc
765if(NOT MSVC) 765# testenc doesn't have an executable instead it uses openssl executable which access various files for IO.
766 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) 766# adding such files to --preload-file is infeasible.
767else() 767if(NOT EMSCRIPTEN)
768 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>) 768 if(NOT MSVC)
769 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh)
770 else()
771 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>)
772 endif()
773 set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}")
769endif() 774endif()
770set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}")
771 775
772# testrsa 776# testrsa
773if(NOT MSVC) 777if(NOT MSVC)