summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-11-12 04:52:53 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-11-12 04:52:53 +0000
commitb470652431078092cfd55bc3ebf93f3fe4fd02a3 (patch)
treee471b4b2a942d6057210b6037e9bde851924b53b /llvm/test/tools/llvm-cov/llvm-cov.test
parentb44676c2215e942c5ff681f180a84274c6283e51 (diff)
downloadbcm5719-llvm-b470652431078092cfd55bc3ebf93f3fe4fd02a3.tar.gz
bcm5719-llvm-b470652431078092cfd55bc3ebf93f3fe4fd02a3.zip
Added basic unit test for llvm-cov.
This test compares the output of llvm-cov against a coverage file generated by gcov. Since the source file must be in the current directory when reading GCNO files, the test will first cd into the Inputs directory. llvm-svn: 194451
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--llvm/test/tools/llvm-cov/llvm-cov.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
new file mode 100644
index 00000000000..049c9b9fe61
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/llvm-cov.test
@@ -0,0 +1,2 @@
+RUN: cd %p/Inputs && llvm-cov -gcno=test.gcno -gcda=test.gcda \
+RUN: | diff test.cpp.gcov -
OpenPOWER on IntegriCloud