
- Add option (--report-failures-only) to generate a reduced report for lit tests that only includes failing tests - This is a continuation of proposed patches by @gregbedwell here: - https://reviews.llvm.org/D143516 - https://reviews.llvm.org/D143519 --------- Co-authored-by: Greg Bedwell <greg.bedwell@sony.com> Co-authored-by: James Henderson <James.Henderson@sony.com>
13 lines
621 B
Python
13 lines
621 B
Python
## Check xunit output.
|
|
# RUN: not %{lit} --report-failures-only --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
|
|
# RUN: FileCheck --input-file=%t.xunit.xml %s
|
|
|
|
# CHECK: <?xml version="1.0" encoding="UTF-8"?>
|
|
# CHECK-NEXT: <testsuites time="{{[0-9.]+}}">
|
|
# CHECK-NEXT: <testsuite name="test-data" tests="1" failures="1" skipped="0" time="{{[0-9.]+}}">
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&name.ini" time="{{[0-1]\.[0-9]+}}">
|
|
# CHECK-NEXT: <failure><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure>
|
|
# CHECK-NEXT: </testcase>
|
|
# CHECK-NEXT: </testsuite>
|
|
# CHECK-NEXT: </testsuites>
|