You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

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 "<testcase name=\"RunCMakeVersion\" classname=\"RunCMakeVersion\"")
set(RunCMake_TEST_FAILED "RunCMakeVersion not found when expected")
endif()
if(NOT "${junit_xml}" MATCHES "<system-out>cmake version")
set(RunCMake_TEST_FAILED "<system-out>cmake version not found when expected")
endif()
else()
set(RunCMake_TEST_FAILED "junit.xml not found")
endif()