2018-05-17 01:36:25 +00:00
|
|
|
# REQUIRES: shell
|
|
|
|
|
2014-12-03 23:01:35 +00:00
|
|
|
# Check xunit output
|
2018-05-16 00:33:29 +00:00
|
|
|
# RUN: rm -rf %t.xunit.xml
|
|
|
|
# RUN: not %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
|
2018-05-16 09:00:28 +00:00
|
|
|
# If xmllint is installed verify that the generated xml is well-formed
|
|
|
|
# RUN: sh -c 'if command -v xmllint 2>/dev/null; then xmllint --noout %t.xunit.xml; fi'
|
2014-12-03 23:01:35 +00:00
|
|
|
# RUN: FileCheck < %t.xunit.xml %s
|
|
|
|
|
2020-06-05 15:45:43 -07:00
|
|
|
# CHECK: <?xml version="1.0" encoding="UTF-8"?>
|
2020-07-23 10:45:55 +01:00
|
|
|
# CHECK-NEXT: <testsuites time="{{[0-9.]+}}">
|
2020-06-05 15:45:43 -07:00
|
|
|
# CHECK-NEXT: <testsuite name="test-data" tests="5" failures="1" skipped="3">
|
|
|
|
# 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: <testcase classname="test-data.test-data" name="excluded.ini" time="{{[0-1]\.[0-9]+}}">
|
2020-07-26 11:39:22 +01:00
|
|
|
# CHECK-NEXT: <skipped message="Test not selected (--filter, --max-tests)"/>
|
2020-06-05 15:45:43 -07:00
|
|
|
# CHECK-NEXT: </testcase>
|
|
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="missing_feature.ini" time="{{[0-1]\.[0-9]+}}">
|
|
|
|
# CHECK-NEXT: <skipped message="Missing required feature(s): dummy_feature"/>
|
|
|
|
# CHECK-NEXT: </testcase>
|
|
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="pass.ini" time="{{[0-1]\.[0-9]+}}"/>
|
|
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="unsupported.ini" time="{{[0-1]\.[0-9]+}}">
|
|
|
|
# CHECK-NEXT: <skipped message="Unsupported configuration"/>
|
|
|
|
# CHECK-NEXT: </testcase>
|
|
|
|
# CHECK-NEXT: </testsuite>
|
|
|
|
# CHECK-NEXT: </testsuites>
|