https://github.com/Kitware/CMake
Raw File
Tip revision: ff8c3acc0fbe037931680fc74b1a2d3f0af58c79 authored by Brad King on 18 November 2021, 15:51:22 UTC
CMake 3.22.0
Tip revision: ff8c3ac
TestChangeId-check.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()
back to top