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