summaryrefslogtreecommitdiff
path: root/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
commitd99e04db6a9a8d58dcfdd958d1a4f00c7d518c9d (patch)
treecd16b8ee0f8f774241011a96cedb8d673466a7d7 /test/tools/llvm-cov/llvm-cov.test
parent86245071b52f1da99ac65157c38bfa5577a80714 (diff)
downloadllvm-d99e04db6a9a8d58dcfdd958d1a4f00c7d518c9d.tar.gz
llvm-d99e04db6a9a8d58dcfdd958d1a4f00c7d518c9d.tar.bz2
llvm-d99e04db6a9a8d58dcfdd958d1a4f00c7d518c9d.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--test/tools/llvm-cov/llvm-cov.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test
new file mode 100644
index 0000000000..049c9b9fe6
--- /dev/null
+++ b/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 -