From d70a51a32aa8e1dc5934471570aa1970cf76cea7 Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Fri, 31 May 2024 20:53:48 +0300 Subject: disable testenc testenc doesn't have an executable instead it uses openssl executable which access various files for IO. adding such files to --preload-file is infeasible. --- tests/CMakeLists.txt | 14 +++++++++----- 1 file 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) endif() # testenc -if(NOT MSVC) - add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) -else() - add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $) +# testenc doesn't have an executable instead it uses openssl executable which access various files for IO. +# adding such files to --preload-file is infeasible. +if(NOT EMSCRIPTEN) + if(NOT MSVC) + add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) + else() + add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $) + endif() + set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") endif() -set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") # testrsa if(NOT MSVC) -- cgit v1.2.3-55-g6feb