file(GLOB junit_xml_file "${RunCMake_TEST_BINARY_DIR}/junit.xml") if(junit_xml_file) file(READ "${junit_xml_file}" junit_xml LIMIT 4096) if(NOT "${junit_xml}" MATCHES "tests=\"1\"") set(RunCMake_TEST_FAILED "tests=\"1\" not found when expected") endif() if(NOT "${junit_xml}" MATCHES "failures=\"0\"") set(RunCMake_TEST_FAILED "failures=\"0\" not found when expected") endif() if(NOT "${junit_xml}" MATCHES "disabled=\"0\"") set(RunCMake_TEST_FAILED "disabled=\"0\" not found when expected") endif() if(NOT "${junit_xml}" MATCHES "skipped=\"0\"") set(RunCMake_TEST_FAILED "skipped=\"0\" not found when expected") endif() if(NOT "${junit_xml}" MATCHES "cmake version") set(RunCMake_TEST_FAILED "cmake version not found when expected") endif() else() set(RunCMake_TEST_FAILED "junit.xml not found") endif()