mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 04:25:45 -04:00

Lit creates malformed xml when the test case has an & in the name. Escape those correctly. This also adds a test case which I will add other nasty encoding issues to in some followup commits. llvm-svn: 331942
12 lines
505 B
Python
12 lines
505 B
Python
# Check xunit output
|
|
# RUN: %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/test-data
|
|
# RUN: FileCheck < %t.xunit.xml %s
|
|
|
|
# CHECK: <?xml version="1.0" encoding="UTF-8" ?>
|
|
# CHECK: <testsuites>
|
|
# CHECK: <testsuite name='test-data' tests='2' failures='0'>
|
|
# CHECK: <testcase classname='test-data.test-data' name='bad&name.ini' time='{{[0-1]}}.{{[0-9]+}}'/>
|
|
# CHECK: <testcase classname='test-data.test-data' name='metrics.ini' time='{{[0-1]}}.{{[0-9]+}}'/>
|
|
# CHECK: </testsuite>
|
|
# CHECK: </testsuites>
|