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