Files
CMake/Tests/RunCMake/CTestResourceAllocation/ensure_parallel-ctest-s-res-check.cmake
T
Craig Scott eb9d945f14 CTest: Rename hardware -> resources for RunCMake tests
Also includes variants like hw -> res
2019-11-05 12:08:35 -05:00

17 lines
447 B
CMake

verify_ctest_resources()
set(expected_contents [[
begin Test1
alloc transmogrifiers calvin 2
begin Test2
alloc transmogrifiers hobbes 2
dealloc transmogrifiers calvin 2
end Test1
dealloc transmogrifiers hobbes 2
end Test2
]])
file(READ "${RunCMake_TEST_BINARY_DIR}/ctresalloc.log" actual_contents)
if(NOT actual_contents STREQUAL expected_contents)
string(APPEND RunCMake_TEST_FAILED "ctresalloc.log contents did not match expected\n")
endif()