aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-06-07 19:49:48 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd (patch)
tree1f6a7d18b7f3477f5952672b3355308670f789af /tests
parentf788dea498c3a27a39236b8a8fb0e2186ed21cd1 (diff)
downloadportable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.tar.gz
portable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.tar.bz2
portable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.zip
group testdsa, testenc, and testrsa under a single if(NOT EMSCRIPTEN)
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt18
1 files changed, 5 insertions, 13 deletions
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()
744endif() 744endif()
745set_tests_properties(ssltest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") 745set_tests_properties(ssltest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}")
746 746
747# testdsa 747# testdsa, testenc, testrsa don't have an executable instead it uses openssl executable which
748# testdsa doesn't have an executable instead it uses openssl executable which access various files for IO. 748# access various files for IO. adding such files to --preload-file is infeasible.
749# adding such files to --preload-file is infeasible.
750if(NOT EMSCRIPTEN) 749if(NOT EMSCRIPTEN)
750 # testdsa
751 if(NOT MSVC) 751 if(NOT MSVC)
752 add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.sh) 752 add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.sh)
753 else() 753 else()
754 add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.bat $<TARGET_FILE:openssl>) 754 add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.bat $<TARGET_FILE:openssl>)
755 endif() 755 endif()
756 set_tests_properties(testdsa PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") 756 set_tests_properties(testdsa PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}")
757endif()
758 757
759# testenc 758 # testenc
760# testenc doesn't have an executable instead it uses openssl executable which access various files for IO.
761# adding such files to --preload-file is infeasible.
762if(NOT EMSCRIPTEN)
763 if(NOT MSVC) 759 if(NOT MSVC)
764 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) 760 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh)
765 else() 761 else()
766 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>) 762 add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>)
767 endif() 763 endif()
768 set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") 764 set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}")
769endif()
770 765
771# testrsa 766 # testrsa
772# testrsa doesn't have an executable instead it uses openssl executable which access various files for IO.
773# adding such files to --preload-file is infeasible.
774if(NOT EMSCRIPTEN)
775 if(NOT MSVC) 767 if(NOT MSVC)
776 add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.sh) 768 add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.sh)
777 else() 769 else()