xref: /llvm-project/llvm/utils/lit/tests/xunit-output.py (revision 7d6224d2fa761e2e2c5a71c47e02bc37a92c0409)
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 >
10# CHECK-NEXT:&amp; &lt; &gt; "
11# CHECK-NEXT:</failure>
12# CHECK: </testsuite>
13# CHECK: </testsuites>
14