Files
CMake/Tests/RunCMake/ctest_memcheck/ExpectedOutputs-check.cmake
T
Ben Boeckel ce44c2cec3 ctest_memcheck: generate DynamicAnalysis-Test.xml as well
This is useful so that memcheck results also show up as test results on
CDash. It will be submitted with the other `MemCheck` parts.

Fixes: #22190
2021-09-08 21:04:46 -04:00

11 lines
286 B
CMake

function (find_xml_file name)
file(GLOB test_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/${name}.xml")
if (NOT test_xml_file)
message(FATAL_ERROR
"${name}.xml not created.")
endif ()
endfunction ()
find_xml_file(DynamicAnalysis)
find_xml_file(DynamicAnalysis-Test)