diff options
author | Brad King <brad.king@kitware.com> | 2019-11-05 17:59:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-05 17:59:16 (GMT) |
commit | 016601e5e6f152403306c12997534aadd4287d38 (patch) | |
tree | 64af20c4200fd44061789bcb9bf6842fd8cb5ab0 /Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake | |
parent | 370fe1495b4109430b2cb250dd3afd1ce9401cf6 (diff) | |
parent | c1435d98120dff203de01d75f8f91e99bc75fe2b (diff) | |
download | CMake-016601e5e6f152403306c12997534aadd4287d38.zip CMake-016601e5e6f152403306c12997534aadd4287d38.tar.gz CMake-016601e5e6f152403306c12997534aadd4287d38.tar.bz2 |
Merge branch 'backport-ctest-resource-groups'
Diffstat (limited to 'Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake')
-rw-r--r-- | Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake b/Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake deleted file mode 100644 index 3893d40..0000000 --- a/Tests/RunCMake/CTestHardwareAllocation/HardwareCommon.cmake +++ /dev/null @@ -1,23 +0,0 @@ -function(setup_hardware_tests) - if(CTEST_HARDWARE_ALLOC_ENABLED) - add_test(NAME HardwareSetup COMMAND "${CMAKE_COMMAND}" -E remove -f "${CMAKE_BINARY_DIR}/cthwalloc.log") - endif() -endfunction() - -function(add_hardware_test name sleep_time proc) - if(CTEST_HARDWARE_ALLOC_ENABLED) - add_test(NAME "${name}" COMMAND "${CTHWALLOC_COMMAND}" write "${CMAKE_BINARY_DIR}/cthwalloc.log" "${name}" "${sleep_time}" "${proc}") - set_property(TEST "${name}" PROPERTY DEPENDS HardwareSetup) - else() - add_test(NAME "${name}" COMMAND "${CTHWALLOC_COMMAND}" write "${CMAKE_BINARY_DIR}/cthwalloc.log" "${name}" "${sleep_time}") - endif() - set_property(TEST "${name}" PROPERTY PROCESSES "${proc}") - list(APPEND HARDWARE_TESTS "${name}") - set(HARDWARE_TESTS "${HARDWARE_TESTS}" PARENT_SCOPE) -endfunction() - -function(cleanup_hardware_tests) - if(CTEST_HARDWARE_ALLOC_ENABLED) - file(WRITE "${CMAKE_BINARY_DIR}/hwtests.txt" "${HARDWARE_TESTS}") - endif() -endfunction() |