diff options
| author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-06-07 19:49:48 +0300 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
| commit | 30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd (patch) | |
| tree | 1f6a7d18b7f3477f5952672b3355308670f789af | |
| parent | f788dea498c3a27a39236b8a8fb0e2186ed21cd1 (diff) | |
| download | portable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.tar.gz portable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.tar.bz2 portable-30e571fb5fb49ad6ea880dc8813f6d4b1042f0fd.zip | |
group testdsa, testenc, and testrsa under a single if(NOT EMSCRIPTEN)
| -rw-r--r-- | tests/CMakeLists.txt | 18 |
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() | |||
| 744 | endif() | 744 | endif() |
| 745 | set_tests_properties(ssltest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 745 | set_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. | ||
| 750 | if(NOT EMSCRIPTEN) | 749 | if(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}") |
| 757 | endif() | ||
| 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. | ||
| 762 | if(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}") |
| 769 | endif() | ||
| 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. | ||
| 774 | if(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() |
