diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-03-04 15:14:29 +0100 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2025-03-04 15:14:29 +0100 |
| commit | 6551a0a5099a3ecdbfa248fe7cdd8a510b9e7ac0 (patch) | |
| tree | dd3ba550871832401b568fc72a49674e2cdf58f7 | |
| parent | 6abe6be6c688a519aa5c4271b79a528d62c0a81d (diff) | |
| parent | 849dbabf1543925a07ea003004e33a3af1684af6 (diff) | |
| download | portable-6551a0a5099a3ecdbfa248fe7cdd8a510b9e7ac0.tar.gz portable-6551a0a5099a3ecdbfa248fe7cdd8a510b9e7ac0.tar.bz2 portable-6551a0a5099a3ecdbfa248fe7cdd8a510b9e7ac0.zip | |
Land #1141 - fix MinGW tests
| -rw-r--r-- | tests/CMakeLists.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fde5406..fb0d16c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -568,7 +568,7 @@ add_platform_test(objectstest objectstest) | |||
| 568 | if(ENABLE_EXTRATESTS) | 568 | if(ENABLE_EXTRATESTS) |
| 569 | add_executable(ocsp_test ocsp_test.c) | 569 | add_executable(ocsp_test ocsp_test.c) |
| 570 | target_link_libraries(ocsp_test ${OPENSSL_TEST_LIBS}) | 570 | target_link_libraries(ocsp_test ${OPENSSL_TEST_LIBS}) |
| 571 | if(NOT MSVC) | 571 | if(NOT WIN32) |
| 572 | add_test(NAME ocsptest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) | 572 | add_test(NAME ocsptest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) |
| 573 | else() | 573 | else() |
| 574 | add_test(NAME ocsptest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.bat $<TARGET_FILE:ocsp_test>) | 574 | add_test(NAME ocsptest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.bat $<TARGET_FILE:ocsp_test>) |
| @@ -617,7 +617,7 @@ add_platform_test(policy policy) | |||
| 617 | # pq_test | 617 | # pq_test |
| 618 | add_executable(pq_test pq_test.c) | 618 | add_executable(pq_test pq_test.c) |
| 619 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) | 619 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) |
| 620 | if(NOT MSVC) | 620 | if(NOT WIN32) |
| 621 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.sh) | 621 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.sh) |
| 622 | else() | 622 | else() |
| 623 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.bat | 623 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.bat |
| @@ -630,7 +630,7 @@ set(QUICTEST_SRC quictest.c) | |||
| 630 | add_executable(quictest ${QUICTEST_SRC}) | 630 | add_executable(quictest ${QUICTEST_SRC}) |
| 631 | target_link_libraries(quictest ${OPENSSL_TEST_LIBS}) | 631 | target_link_libraries(quictest ${OPENSSL_TEST_LIBS}) |
| 632 | prepare_emscripten_test_target(quictest) | 632 | prepare_emscripten_test_target(quictest) |
| 633 | if(NOT MSVC) | 633 | if(NOT WIN32) |
| 634 | add_test(NAME quictest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/quictest.sh) | 634 | add_test(NAME quictest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/quictest.sh) |
| 635 | else() | 635 | else() |
| 636 | add_test(NAME quictest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/quictest.bat $<TARGET_FILE:quictest>) | 636 | add_test(NAME quictest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/quictest.bat $<TARGET_FILE:quictest>) |
| @@ -713,7 +713,7 @@ add_platform_test(rsa_test rsa_test) | |||
| 713 | add_executable(servertest servertest.c) | 713 | add_executable(servertest servertest.c) |
| 714 | target_link_libraries(servertest ${OPENSSL_TEST_LIBS}) | 714 | target_link_libraries(servertest ${OPENSSL_TEST_LIBS}) |
| 715 | prepare_emscripten_test_target(servertest) | 715 | prepare_emscripten_test_target(servertest) |
| 716 | if(NOT MSVC) | 716 | if(NOT WIN32) |
| 717 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.sh) | 717 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.sh) |
| 718 | else() | 718 | else() |
| 719 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.bat $<TARGET_FILE:servertest>) | 719 | add_test(NAME servertest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/servertest.bat $<TARGET_FILE:servertest>) |
| @@ -730,7 +730,7 @@ set(SHUTDOWNTEST_SRC shutdowntest.c) | |||
| 730 | add_executable(shutdowntest ${SHUTDOWNTEST_SRC}) | 730 | add_executable(shutdowntest ${SHUTDOWNTEST_SRC}) |
| 731 | target_link_libraries(shutdowntest ${OPENSSL_TEST_LIBS}) | 731 | target_link_libraries(shutdowntest ${OPENSSL_TEST_LIBS}) |
| 732 | prepare_emscripten_test_target(shutdowntest) | 732 | prepare_emscripten_test_target(shutdowntest) |
| 733 | if(NOT MSVC) | 733 | if(NOT WIN32) |
| 734 | add_test(NAME shutdowntest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/shutdowntest.sh) | 734 | add_test(NAME shutdowntest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/shutdowntest.sh) |
| 735 | else() | 735 | else() |
| 736 | add_test(NAME shutdowntest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/shutdowntest.bat $<TARGET_FILE:shutdowntest>) | 736 | add_test(NAME shutdowntest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/shutdowntest.bat $<TARGET_FILE:shutdowntest>) |
| @@ -802,7 +802,7 @@ add_platform_test(ssl_versions ssl_versions) | |||
| 802 | add_executable(ssltest ssltest.c) | 802 | add_executable(ssltest ssltest.c) |
| 803 | target_link_libraries(ssltest ${OPENSSL_TEST_LIBS}) | 803 | target_link_libraries(ssltest ${OPENSSL_TEST_LIBS}) |
| 804 | prepare_emscripten_test_target(ssltest) | 804 | prepare_emscripten_test_target(ssltest) |
| 805 | if(NOT MSVC) | 805 | if(NOT WIN32) |
| 806 | add_test(NAME ssltest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ssltest.sh) | 806 | add_test(NAME ssltest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ssltest.sh) |
| 807 | else() | 807 | else() |
| 808 | add_test(NAME ssltest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ssltest.bat $<TARGET_FILE:ssltest> $<TARGET_FILE:openssl>) | 808 | add_test(NAME ssltest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ssltest.bat $<TARGET_FILE:ssltest> $<TARGET_FILE:openssl>) |
| @@ -813,7 +813,7 @@ set_tests_properties(ssltest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | |||
| 813 | # access various files for IO. Adding such files to --preload-file is infeasible. | 813 | # access various files for IO. Adding such files to --preload-file is infeasible. |
| 814 | if(NOT EMSCRIPTEN) | 814 | if(NOT EMSCRIPTEN) |
| 815 | # testdsa | 815 | # testdsa |
| 816 | if(NOT MSVC) | 816 | if(NOT WIN32) |
| 817 | add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.sh) | 817 | add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.sh) |
| 818 | else() | 818 | else() |
| 819 | add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.bat $<TARGET_FILE:openssl>) | 819 | add_test(NAME testdsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testdsa.bat $<TARGET_FILE:openssl>) |
| @@ -821,7 +821,7 @@ if(NOT EMSCRIPTEN) | |||
| 821 | set_tests_properties(testdsa PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 821 | set_tests_properties(testdsa PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
| 822 | 822 | ||
| 823 | # testenc | 823 | # testenc |
| 824 | if(NOT MSVC) | 824 | if(NOT WIN32) |
| 825 | add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) | 825 | add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.sh) |
| 826 | else() | 826 | else() |
| 827 | add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>) | 827 | add_test(NAME testenc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testenc.bat $<TARGET_FILE:openssl>) |
| @@ -829,7 +829,7 @@ if(NOT EMSCRIPTEN) | |||
| 829 | set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 829 | set_tests_properties(testenc PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
| 830 | 830 | ||
| 831 | # testrsa | 831 | # testrsa |
| 832 | if(NOT MSVC) | 832 | if(NOT WIN32) |
| 833 | add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.sh) | 833 | add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.sh) |
| 834 | else() | 834 | else() |
| 835 | add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.bat $<TARGET_FILE:openssl>) | 835 | add_test(NAME testrsa COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testrsa.bat $<TARGET_FILE:openssl>) |
| @@ -866,7 +866,7 @@ if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) | |||
| 866 | 866 | ||
| 867 | add_executable(tlstest ${TLSTEST_SRC}) | 867 | add_executable(tlstest ${TLSTEST_SRC}) |
| 868 | target_link_libraries(tlstest ${LIBTLS_TEST_LIBS}) | 868 | target_link_libraries(tlstest ${LIBTLS_TEST_LIBS}) |
| 869 | if(NOT MSVC) | 869 | if(NOT WIN32) |
| 870 | add_test(NAME tlstest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tlstest.sh) | 870 | add_test(NAME tlstest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tlstest.sh) |
| 871 | else() | 871 | else() |
| 872 | add_test(NAME tlstest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tlstest.bat $<TARGET_FILE:tlstest>) | 872 | add_test(NAME tlstest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tlstest.bat $<TARGET_FILE:tlstest>) |
