summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-02-04 06:41:43 +0000
committerJustin Bogner <mail@justinbogner.com>2014-02-04 06:41:43 +0000
commitf69557e6702c167a04d8866ce08a19c34699695a (patch)
treefa6ca4f8edd1859824ec2e8c1c01badba0d5a7fa /llvm/test/tools/llvm-cov/llvm-cov.test
parent93d1edbb7d2cf8fcbf00490e330b886018c8c267 (diff)
downloadbcm5719-llvm-f69557e6702c167a04d8866ce08a19c34699695a.tar.gz
bcm5719-llvm-f69557e6702c167a04d8866ce08a19c34699695a.zip
llvm-cov: Implement the object-directory flag
llvm-svn: 200741
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--llvm/test/tools/llvm-cov/llvm-cov.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
index f205cde7911..239108240e0 100644
--- a/llvm/test/tools/llvm-cov/llvm-cov.test
+++ b/llvm/test/tools/llvm-cov/llvm-cov.test
@@ -14,6 +14,13 @@ RUN: llvm-cov test.c | diff -u test_no_options.output -
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
RUN: diff -aub test_no_options.h.gcov test.h.gcov
+# Same, but specifying the object directory
+RUN: mkdir -p %t/objdir
+RUN: cp test.gcno test.gcda %t/objdir
+RUN: llvm-cov -o objdir test.c | diff -u test_no_options.output -
+RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
+RUN: diff -aub test_objdir.h.gcov test.h.gcov
+
# Function summaries. This changes stdout, but not the gcov files.
RUN: llvm-cov test.c -f | diff -u test_-f.output -
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
OpenPOWER on IntegriCloud