mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Tests: Honor CMake_TEST_NO_NETWORK in RunCMake.file-DOWNLOAD
Most of the test uses `file://` URLs instead of hitting the network. However, a case covering an invalid hostname does try to make a real connection, expecting it to fail DNS resolution. Turn off that case if we are asked not to hit the network during testing.
This commit is contained in:
@@ -466,7 +466,7 @@ add_RunCMake_test(ctest_fixtures)
|
||||
add_RunCMake_test(define_property)
|
||||
add_RunCMake_test(file -DCYGWIN=${CYGWIN} -DMSYS=${MSYS})
|
||||
add_RunCMake_test(file-CHMOD -DMSYS=${MSYS})
|
||||
add_RunCMake_test(file-DOWNLOAD)
|
||||
add_RunCMake_test(file-DOWNLOAD -DCMake_TEST_NO_NETWORK=${CMake_TEST_NO_NETWORK})
|
||||
add_RunCMake_test(file-RPATH -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME})
|
||||
add_RunCMake_test(find_file)
|
||||
add_RunCMake_test(find_library -DCYGWIN=${CYGWIN} -DMSYS=${MSYS})
|
||||
|
||||
@@ -14,10 +14,13 @@ run_cmake(tls-verify-not-set)
|
||||
run_cmake(pass-not-set)
|
||||
run_cmake(no-save-hash)
|
||||
|
||||
run_cmake(bad-hostname)
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user