summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ctest_update/UpdateActualVersion-check.cmake
blob: 12bd5a00dae65b8836e50440b7f08fedeb7ba520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
file(GLOB update_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/Update.xml")
if(update_xml_file)
  file(READ "${update_xml_file}" update_xml LIMIT 4096)
  if(NOT update_xml MATCHES "qwertyuiop")
    string(REPLACE "\n" "\n  " update_xml "  ${update_xml}")
    set(RunCMake_TEST_FAILED
      "Did not find 'qwertyuiop' in Update.xml:\n${update_xml}"
      )
  endif()
else()
  set(RunCMake_TEST_FAILED "Update.xml not found")
endif()