OSDN Git Service

am 2ee64e38: Merge "Add a test-case for lit xunit output"
authorDan Albert <danalbert@google.com>
Fri, 9 Jan 2015 01:56:29 +0000 (01:56 +0000)
committerAndroid Git Automerger <android-git-automerger@android.com>
Fri, 9 Jan 2015 01:56:29 +0000 (01:56 +0000)
* commit '2ee64e38ab63e8d94fcdbceba954b35c605bd83e':
  Add a test-case for lit xunit output

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