Add a test-case for lit xunit output
authorChris Matthews <cmatthews5@apple.com>
Wed, 3 Dec 2014 23:01:35 +0000 (23:01 +0000)
committerChris Matthews <cmatthews5@apple.com>
Wed, 3 Dec 2014 23:01:35 +0000 (23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223307 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/tests/xunit-output.py [new file with mode: 0644]

diff --git a/utils/lit/tests/xunit-output.py b/utils/lit/tests/xunit-output.py
new file mode 100644 (file)
index 0000000..8765229
--- /dev/null
@@ -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