mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-22 06:31:29 -06:00
Occasionally curl updates introduce errors in https verification. Add an explicit test for this capability, activated by an undocumented option that we can use in CI to specify a URL to test. Co-authored-by: Brad King <brad.king@kitware.com> Fixes: #24405 Issue: #24147 Issue: #24398
32 lines
738 B
CMake
32 lines
738 B
CMake
include(RunCMake)
|
|
|
|
# We do not contact any real URLs, but do try a bogus one.
|
|
# Remove any proxy configuration that may change behavior.
|
|
unset(ENV{http_proxy})
|
|
unset(ENV{https_proxy})
|
|
|
|
run_cmake(hash-mismatch)
|
|
run_cmake(unused-argument)
|
|
run_cmake(httpheader-not-set)
|
|
run_cmake(netrc-bad)
|
|
run_cmake(tls-cainfo-not-set)
|
|
run_cmake(tls-verify-not-set)
|
|
run_cmake(pass-not-set)
|
|
run_cmake(no-save-hash)
|
|
|
|
run_cmake(basic)
|
|
run_cmake(EXPECTED_HASH)
|
|
run_cmake(file-without-path)
|
|
run_cmake(no-file)
|
|
run_cmake(range)
|
|
run_cmake(SHOW_PROGRESS)
|
|
|
|
if(NOT CMake_TEST_NO_NETWORK)
|
|
run_cmake(bad-hostname)
|
|
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})
|
|
endif()
|