| 1 |
# UNSUPPORTED: system-windows |
| 2 |
|
| 3 |
# Check xunit output |
| 4 |
# RUN: rm -rf %t.xunit.xml |
| 5 |
# RUN: not %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output |
| 6 |
# If xmllint is installed verify that the generated xml is well-formed |
| 7 |
# RUN: sh -c 'if command -v xmllint 2>/dev/null; then xmllint --noout %t.xunit.xml; fi' |
| 8 |
# RUN: FileCheck < %t.xunit.xml %s |
| 9 |
|
| 10 |
# CHECK: <?xml version="1.0" encoding="UTF-8"?> |
| 11 |
# CHECK-NEXT: <testsuites time="{{[0-9]+\.[0-9]+}}"> |
| 12 |
# CHECK-NEXT: <testsuite name="test-data" tests="5" failures="1" skipped="3" time="{{[0-9]+\.[0-9]+}}"> |
| 13 |
# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&name.ini" time="{{[0-9]+\.[0-9]+}}"> |
| 14 |
# CHECK-NEXT: <failure><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure> |
| 15 |
# CHECK-NEXT: </testcase> |
| 16 |
# CHECK-NEXT: <testcase classname="test-data.test-data" name="excluded.ini" time="{{[0-9]+\.[0-9]+}}"> |
| 17 |
# CHECK-NEXT: <skipped message="Test not selected (--filter, --max-tests)"/> |
| 18 |
# CHECK-NEXT: </testcase> |
| 19 |
# CHECK-NEXT: <testcase classname="test-data.test-data" name="missing_feature.ini" time="{{[0-9]+\.[0-9]+}}"> |
| 20 |
# CHECK-NEXT: <skipped message="Missing required feature(s): dummy_feature"/> |
| 21 |
# CHECK-NEXT: </testcase> |
| 22 |
# CHECK-NEXT: <testcase classname="test-data.test-data" name="pass.ini" time="{{[0-9]+\.[0-9]+}}"/> |
| 23 |
# CHECK-NEXT: <testcase classname="test-data.test-data" name="unsupported.ini" time="{{[0-9]+\.[0-9]+}}"> |
| 24 |
# CHECK-NEXT: <skipped message="Unsupported configuration"/> |
| 25 |
# CHECK-NEXT: </testcase> |
| 26 |
# CHECK-NEXT: </testsuite> |
| 27 |
# CHECK-NEXT: </testsuites> |