xref: /llvm-project/llvm/utils/lit/tests/xunit-output-report-failures-only.py (revision c63e83f49575c024cf89fce9bc95d64988f3177b)
1## Check xunit output.
2# RUN: not %{lit} --report-failures-only --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
3# RUN: FileCheck --input-file=%t.xunit.xml %s
4
5# CHECK:      <?xml version="1.0" encoding="UTF-8"?>
6# CHECK-NEXT: <testsuites time="{{[0-9.]+}}">
7# CHECK-NEXT: <testsuite name="test-data" tests="1" failures="1" skipped="0" time="{{[0-9.]+}}">
8# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&amp;name.ini" time="{{[0-1]\.[0-9]+}}">
9# CHECK-NEXT:   <failure><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure>
10# CHECK-NEXT: </testcase>
11# CHECK-NEXT: </testsuite>
12# CHECK-NEXT: </testsuites>
13