601ff0ec55
Add variable CTEST_CHANGE_ID to configure the setting. This allows CTest clients to give CDash information about what change is being tested so that CDash can take actions to report the results (e.g. to a pull request page).
13 lines
427 B
CMake
13 lines
427 B
CMake
file(GLOB test_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/Test.xml")
|
|
if(test_xml_file)
|
|
file(READ "${test_xml_file}" test_xml LIMIT 4096)
|
|
if(NOT test_xml MATCHES [[ChangeId="<>1"]])
|
|
string(REPLACE "\n" "\n " test_xml " ${test_xml}")
|
|
set(RunCMake_TEST_FAILED
|
|
"Test.xml does not have expected ChangeId:\n${test_xml}"
|
|
)
|
|
endif()
|
|
else()
|
|
set(RunCMake_TEST_FAILED "Test.xml not found")
|
|
endif()
|