From 30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Fri, 7 Jun 2024 19:49:48 +0300 Subject: group testdsa, testenc, and testrsa under a single if(NOT EMSCRIPTEN) --- tests/CMakeLists.txt | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ed7b253..bee98c6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -744,34 +744,26 @@ else() endif() set_tests_properties(ssltest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") -# testdsa -# testdsa doesn't have an executable instead it uses openssl executable which access various files for IO. -# adding such files to --preload-file is infeasible. +# testdsa, testenc, testrsa don'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) + # testdsa if(NOT MSVC) add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.sh) else() add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.bat $) endif() set_tests_properties(testdsa PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") -endif() -# 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. -if(NOT EMSCRIPTEN) + # 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 $) endif() set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") -endif() -# testrsa -# testrsa 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) + # testrsa if(NOT MSVC) add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.sh) else() -- cgit v1.2.3-55-g6feb