diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-29 15:12:03 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2021-08-02 20:43:47 (GMT) |
commit | e808cbb1dd9bf594e2f2c8ea2c0b82b9a6590d29 (patch) | |
tree | e6c3449631cd9dc2740a5720defda44671bcc2a2 /Tests/CMakeTests | |
parent | 9e831284e5373002067754dfe7206e91075fa635 (diff) | |
download | CMake-e808cbb1dd9bf594e2f2c8ea2c0b82b9a6590d29.zip CMake-e808cbb1dd9bf594e2f2c8ea2c0b82b9a6590d29.tar.gz CMake-e808cbb1dd9bf594e2f2c8ea2c0b82b9a6590d29.tar.bz2 |
Testing: Convert `cmake_host_system_information` tests into `RunCMake`
Diffstat (limited to 'Tests/CMakeTests')
6 files changed, 0 insertions, 61 deletions
diff --git a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg1.cmake b/Tests/CMakeTests/CMakeHostSystemInformation-BadArg1.cmake deleted file mode 100644 index 1655eb4..0000000 --- a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg1.cmake +++ /dev/null @@ -1 +0,0 @@ -cmake_host_system_information(HOSTNAME) diff --git a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg2.cmake b/Tests/CMakeTests/CMakeHostSystemInformation-BadArg2.cmake deleted file mode 100644 index 1f056d5..0000000 --- a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg2.cmake +++ /dev/null @@ -1 +0,0 @@ -cmake_host_system_information(RESULT FQDN HOSTNAME) diff --git a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg3.cmake b/Tests/CMakeTests/CMakeHostSystemInformation-BadArg3.cmake deleted file mode 100644 index 9c5a558..0000000 --- a/Tests/CMakeTests/CMakeHostSystemInformation-BadArg3.cmake +++ /dev/null @@ -1 +0,0 @@ -cmake_host_system_information(RESULT RESULT QUERY FOOBAR) diff --git a/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake b/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake deleted file mode 100644 index 1c3156d..0000000 --- a/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake +++ /dev/null @@ -1,5 +0,0 @@ -cmake_host_system_information(RESULT RESULT - QUERY NUMBER_OF_LOGICAL_CORES NUMBER_OF_PHYSICAL_CORES -) - -message("[${RESULT}]") diff --git a/Tests/CMakeTests/CMakeHostSystemInformationTest.cmake.in b/Tests/CMakeTests/CMakeHostSystemInformationTest.cmake.in deleted file mode 100644 index a3c2b05..0000000 --- a/Tests/CMakeTests/CMakeHostSystemInformationTest.cmake.in +++ /dev/null @@ -1,52 +0,0 @@ -set(BadArg1-RESULT 1) -set(BadArg1-STDERR "missing RESULT specification") -set(BadArg2-RESULT 1) -set(BadArg2-STDERR "missing QUERY specification") -set(BadArg3-RESULT 1) -set(BadArg3-STDERR "does not recognize <key> FOOBAR") -set(QueryList-RESULT 0) -set(QueryList-STDERR "\\[[0-9]+;[0-9]+\\]") - -function(try_and_print key) - cmake_host_system_information(RESULT RESULT QUERY ${key}) - message(STATUS "[${key}] [${RESULT}]") -endfunction() - -message("CTEST_FULL_OUTPUT (Avoid ctest truncation of output)") - -try_and_print(NUMBER_OF_LOGICAL_CORES) -try_and_print(NUMBER_OF_PHYSICAL_CORES) -try_and_print(HOSTNAME) -try_and_print(FQDN) -try_and_print(TOTAL_VIRTUAL_MEMORY) -try_and_print(AVAILABLE_VIRTUAL_MEMORY) -try_and_print(TOTAL_PHYSICAL_MEMORY) -try_and_print(AVAILABLE_PHYSICAL_MEMORY) -try_and_print(IS_64BIT) -try_and_print(HAS_FPU) -try_and_print(HAS_MMX) -try_and_print(HAS_MMX_PLUS) -try_and_print(HAS_SSE) -try_and_print(HAS_SSE2) -try_and_print(HAS_SSE_FP) -try_and_print(HAS_SSE_MMX) -try_and_print(HAS_AMD_3DNOW) -try_and_print(HAS_AMD_3DNOW_PLUS) -try_and_print(HAS_IA64) -try_and_print(HAS_SERIAL_NUMBER) -try_and_print(PROCESSOR_SERIAL_NUMBER) -try_and_print(PROCESSOR_NAME) -try_and_print(PROCESSOR_DESCRIPTION) -try_and_print(OS_NAME) -try_and_print(OS_RELEASE) -try_and_print(OS_VERSION) -try_and_print(OS_PLATFORM) - -include("@CMAKE_CURRENT_SOURCE_DIR@/CheckCMakeTest.cmake") - -check_cmake_test(CMakeHostSystemInformation - BadArg1 - BadArg2 - BadArg3 - QueryList -) diff --git a/Tests/CMakeTests/CMakeLists.txt b/Tests/CMakeTests/CMakeLists.txt index 52959e6..9e0b891 100644 --- a/Tests/CMakeTests/CMakeLists.txt +++ b/Tests/CMakeTests/CMakeLists.txt @@ -31,7 +31,6 @@ AddCMakeTest(CompilerIdVendor "") AddCMakeTest(ProcessorCount "-DKWSYS_TEST_EXE=$<TARGET_FILE:cmsysTestsCxx>") AddCMakeTest(PushCheckState "") AddCMakeTest(While "") -AddCMakeTest(CMakeHostSystemInformation "") AddCMakeTest(FileDownload "") set_tests_properties(CMake.FileDownload PROPERTIES |