[llvm] r223307 - Add a test-case for lit xunit output

Chris Matthews cmatthews5 at apple.com
Wed Dec 3 15:01:35 PST 2014


Author: cmatthews
Date: Wed Dec  3 17:01:35 2014
New Revision: 223307

URL: http://llvm.org/viewvc/llvm-project?rev=223307&view=rev
Log:
Add a test-case for lit xunit output

Added:
    llvm/trunk/utils/lit/tests/xunit-output.py

Added: llvm/trunk/utils/lit/tests/xunit-output.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/xunit-output.py?rev=223307&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/xunit-output.py (added)
+++ llvm/trunk/utils/lit/tests/xunit-output.py Wed Dec  3 17:01:35 2014
@@ -0,0 +1,10 @@
+# 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='1' failures='0'>
+# CHECK: <testcase classname='test-data.' name='metrics.ini' time='0.00'/>
+# CHECK: </testsuite>
+# CHECK: </testsuites>
\ No newline at end of file





More information about the llvm-commits mailing list