diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/CMakeLists.txt | 14 |
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) | |||
| 762 | endif() | 762 | endif() |
| 763 | 763 | ||
| 764 | # testenc | 764 | # testenc |
| 765 | if(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. |
| 767 | else() | 767 | if(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}") | ||
| 769 | endif() | 774 | endif() |
| 770 | set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | ||
| 771 | 775 | ||
| 772 | # testrsa | 776 | # testrsa |
| 773 | if(NOT MSVC) | 777 | if(NOT MSVC) |
