
I got a report that downstream this test failed and the cause was that it took longer than the 1 second we expected to run one of the test cases. This test doesn't need to be that specific, so I am updating all the time regexes to be the same one that allows 0-9 any number of digits, requires a decimal point, then 0-9 any number of digits for the final part.
28 lines
1.5 KiB
Python
28 lines
1.5 KiB
Python
# UNSUPPORTED: system-windows
|
|
|
|
# Check xunit output
|
|
# RUN: rm -rf %t.xunit.xml
|
|
# RUN: not %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
|
|
# 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'
|
|
# RUN: FileCheck < %t.xunit.xml %s
|
|
|
|
# CHECK: <?xml version="1.0" encoding="UTF-8"?>
|
|
# CHECK-NEXT: <testsuites time="{{[0-9]+\.[0-9]+}}">
|
|
# CHECK-NEXT: <testsuite name="test-data" tests="5" failures="1" skipped="3" time="{{[0-9]+\.[0-9]+}}">
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&name.ini" time="{{[0-9]+\.[0-9]+}}">
|
|
# CHECK-NEXT: <failure><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure>
|
|
# CHECK-NEXT: </testcase>
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="excluded.ini" time="{{[0-9]+\.[0-9]+}}">
|
|
# CHECK-NEXT: <skipped message="Test not selected (--filter, --max-tests)"/>
|
|
# CHECK-NEXT: </testcase>
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="missing_feature.ini" time="{{[0-9]+\.[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-9]+\.[0-9]+}}"/>
|
|
# CHECK-NEXT: <testcase classname="test-data.test-data" name="unsupported.ini" time="{{[0-9]+\.[0-9]+}}">
|
|
# CHECK-NEXT: <skipped message="Unsupported configuration"/>
|
|
# CHECK-NEXT: </testcase>
|
|
# CHECK-NEXT: </testsuite>
|
|
# CHECK-NEXT: </testsuites>
|