xref: /aosp_15_r20/external/llvm/utils/lit/tests/xunit-output.py (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# Check xunit output
2*9880d681SAndroid Build Coastguard Worker# RUN: %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/test-data
3*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck < %t.xunit.xml %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker# CHECK: <?xml version="1.0" encoding="UTF-8" ?>
6*9880d681SAndroid Build Coastguard Worker# CHECK: <testsuites>
7*9880d681SAndroid Build Coastguard Worker# CHECK: <testsuite name='test-data' tests='1' failures='0'>
8*9880d681SAndroid Build Coastguard Worker# CHECK: <testcase classname='test-data.test-data' name='metrics.ini' time='0.{{[0-9]+}}'/>
9*9880d681SAndroid Build Coastguard Worker# CHECK: </testsuite>
10*9880d681SAndroid Build Coastguard Worker# CHECK: </testsuites>
11