xunit-output.py 699 B

12345678910111213141516
  1. # REQUIRES: shell
  2. # Check xunit output
  3. # RUN: rm -rf %t.xunit.xml
  4. # RUN: not %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
  5. # If xmllint is installed verify that the generated xml is well-formed
  6. # RUN: sh -c 'if command -v xmllint 2>/dev/null; then xmllint --noout %t.xunit.xml; fi'
  7. # RUN: FileCheck < %t.xunit.xml %s
  8. # CHECK: <?xml version="1.0" encoding="UTF-8" ?>
  9. # CHECK: <testsuites>
  10. # CHECK: <testsuite name="test-data" tests="1" failures="1" skipped="0">
  11. # CHECK: <testcase classname="test-data.test-data" name="bad&amp;name.ini" time="{{[0-1]}}.{{[0-9]+}}">
  12. # CHECK-NEXT: <failure ><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure>
  13. # CHECK: </testsuite>
  14. # CHECK: </testsuites>