diff options
Diffstat (limited to 'Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake b/Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake index d757eea..5e0310b 100644 --- a/Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake +++ b/Tests/RunCMake/file-DOWNLOAD/RunCMakeTest.cmake @@ -11,6 +11,7 @@ run_cmake(httpheader-not-set) run_cmake(netrc-bad) run_cmake(tls-cainfo-not-set) run_cmake(tls-verify-not-set) +run_cmake(TLS_VERSION-missing) run_cmake(pass-not-set) run_cmake(no-save-hash) @@ -25,7 +26,14 @@ if(NOT CMake_TEST_NO_NETWORK) run_cmake(bad-hostname) endif() +run_cmake_with_options(TLS_VERSION-bad) +if(CMake_TEST_TLS_VERIFY_URL_BAD) + run_cmake_with_options(TLS_VERIFY-bad -Durl=${CMake_TEST_TLS_VERIFY_URL_BAD}) +endif() + if(CMake_TEST_TLS_VERIFY_URL) - run_cmake(TLS_VERIFY-bad) run_cmake_with_options(TLS_VERIFY-good -Durl=${CMake_TEST_TLS_VERIFY_URL}) + if(CMake_TEST_TLS_VERSION) + run_cmake_with_options(TLS_VERSION-good -Durl=${CMake_TEST_TLS_VERIFY_URL} -Dtls_version=${CMake_TEST_TLS_VERSION}) + endif() endif() |