diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-18 21:12:51 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-18 21:12:51 +0000 |
commit | 8cb0f6e78e491e9bb8c3612a6e1062243beaad4f (patch) | |
tree | f02504492fb2608f38c4f5b05eff46fea0a62848 /test/tools/llvm-cov/Inputs | |
parent | 4fc184584c8271fcd6dea39676b39681bf356f83 (diff) | |
download | llvm-8cb0f6e78e491e9bb8c3612a6e1062243beaad4f.tar.gz llvm-8cb0f6e78e491e9bb8c3612a6e1062243beaad4f.tar.bz2 llvm-8cb0f6e78e491e9bb8c3612a6e1062243beaad4f.tar.xz |
llvm-cov: Print coverage summary to STDOUT.
File summaries will now be optionally outputted which will give line,
branching and call coverage info. Unfortunately, clang's current
instrumentation does not give enough information to deduce function
calls, something that gcc is able to do. Thus, no calls are always
outputted to be consistent with gcov output.
Also updated tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/Inputs')
-rw-r--r-- | test/tools/llvm-cov/Inputs/test_-b.output | 13 | ||||
-rw-r--r-- | test/tools/llvm-cov/Inputs/test_no_options.output | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/test_-b.output b/test/tools/llvm-cov/Inputs/test_-b.output new file mode 100644 index 0000000000..4003ce8e69 --- /dev/null +++ b/test/tools/llvm-cov/Inputs/test_-b.output @@ -0,0 +1,13 @@ +File 'test.cpp' +Lines executed:84.21% of 38 +Branches executed:100.00% of 15 +Taken at least once:86.67% of 15 +No calls +test.cpp:creating 'test.cpp.gcov' + +File './test.h' +Lines executed:100.00% of 1 +No branches +No calls +./test.h:creating './test.h.gcov' + diff --git a/test/tools/llvm-cov/Inputs/test_no_options.output b/test/tools/llvm-cov/Inputs/test_no_options.output new file mode 100644 index 0000000000..93ea726720 --- /dev/null +++ b/test/tools/llvm-cov/Inputs/test_no_options.output @@ -0,0 +1,8 @@ +File 'test.cpp' +Lines executed:84.21% of 38 +test.cpp:creating 'test.cpp.gcov' + +File './test.h' +Lines executed:100.00% of 1 +./test.h:creating './test.h.gcov' + |