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)
llvm-svn: 223307

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

diff --git a/llvm/utils/lit/tests/xunit-output.py b/llvm/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