diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-19 00:29:25 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-19 00:29:25 +0000 |
commit | bb6a477131a7f23a6df66f4005b932e6fd34a718 (patch) | |
tree | e2a1698dc98fc9b6c9bf47e87d107c19f7f8f8e7 /llvm/test/tools/llvm-cov/llvm-cov.test | |
parent | 23f2fcaed88664166184ab2a8b13f4abe79858c1 (diff) | |
download | bcm5719-llvm-bb6a477131a7f23a6df66f4005b932e6fd34a718.tar.gz bcm5719-llvm-bb6a477131a7f23a6df66f4005b932e6fd34a718.zip |
llvm-cov: Added -f option for function summaries.
Similar to the file summaries, the function summaries output line,
branching and call statistics. The file summaries have been moved
outside the initial loop so that all of the function summaries can be
outputted before file summaries.
Also updated test cases.
llvm-svn: 197633
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r-- | llvm/test/tools/llvm-cov/llvm-cov.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test index da393071689..4e4fb52ffad 100644 --- a/llvm/test/tools/llvm-cov/llvm-cov.test +++ b/llvm/test/tools/llvm-cov/llvm-cov.test @@ -6,6 +6,7 @@ RUN: cd %t RUN: cp %p/Inputs/test* . RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda | diff test_no_options.output - +RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -f | diff test_-f.output - RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov RUN: diff -aub test_no_options.h.gcov test.h.gcov @@ -14,6 +15,9 @@ RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov RUN: diff -aub test_-a.h.gcov test.h.gcov RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b | diff test_-b.output - +# This is expected to fail because gcov doesn't actually output real branch or +# call statistics on a per function basis. +RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -f | not diff test_-b_-f.output - RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov RUN: diff -aub test_-a_-b.h.gcov test.h.gcov |