diff options
author | Brad King <brad.king@kitware.com> | 2020-10-23 13:02:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-23 13:02:37 (GMT) |
commit | b91dd2c639ba095a3fca006c1e00f6f3aa33a995 (patch) | |
tree | 51868f4ffc1e1b1a0a042ec993cd519a1c0cac97 /Tests | |
parent | a541921c56bb7dcd0e248928a2d8a215e7643b1c (diff) | |
parent | 11d21c1c4e7028570e78c134b36187dbf03aaa4e (diff) | |
download | CMake-b91dd2c639ba095a3fca006c1e00f6f3aa33a995.zip CMake-b91dd2c639ba095a3fca006c1e00f6f3aa33a995.tar.gz CMake-b91dd2c639ba095a3fca006c1e00f6f3aa33a995.tar.bz2 |
Merge topic 'ctest-hostname-cleanup'
11d21c1c4e CTest: Avoid invoking external tool to get the host name
3f3762856f Tests: Add case verifying CTest module SITE variable
94c6295db1 Help: Document site_name command use of HOSTNAME variable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5407
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CTest/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/CTest/Site.cmake | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTest/RunCMakeTest.cmake b/Tests/RunCMake/CTest/RunCMakeTest.cmake index ffc8f78..b81f319 100644 --- a/Tests/RunCMake/CTest/RunCMakeTest.cmake +++ b/Tests/RunCMake/CTest/RunCMakeTest.cmake @@ -5,6 +5,7 @@ run_cmake(BeforeProject) unset(RunCMake_TEST_OPTIONS) run_cmake(NotOn) +run_cmake(Site) function(run_CMakeCTestArguments) run_cmake_with_options(CMakeCTestArguments "-DCMAKE_CTEST_ARGUMENTS=--quiet\\;--output-log\\;output-log.txt") diff --git a/Tests/RunCMake/CTest/Site.cmake b/Tests/RunCMake/CTest/Site.cmake new file mode 100644 index 0000000..2c96f23 --- /dev/null +++ b/Tests/RunCMake/CTest/Site.cmake @@ -0,0 +1,5 @@ +include(CTest) +get_property(site CACHE SITE PROPERTY VALUE) +if(NOT "${site}" STREQUAL "${SITE}") + message(FATAL_ERROR "SITE is not a cache entry") +endif() |