summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-18 21:12:51 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-18 21:12:51 +0000
commit8256ee6d4accb3a7ed3596f4498abdf88d0e9606 (patch)
tree421ed9ab294fe3fe11d3d3bbde50f2ee6f345aad /llvm/test/tools/llvm-cov/Inputs
parent283bf89506603c88496d3cdf87dc0359289b1fa2 (diff)
downloadbcm5719-llvm-8256ee6d4accb3a7ed3596f4498abdf88d0e9606.tar.gz
bcm5719-llvm-8256ee6d4accb3a7ed3596f4498abdf88d0e9606.zip
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. llvm-svn: 197606
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs')
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/test_-b.output13
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/test_no_options.output8
2 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/test_-b.output b/llvm/test/tools/llvm-cov/Inputs/test_-b.output
new file mode 100644
index 00000000000..4003ce8e692
--- /dev/null
+++ b/llvm/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/llvm/test/tools/llvm-cov/Inputs/test_no_options.output b/llvm/test/tools/llvm-cov/Inputs/test_no_options.output
new file mode 100644
index 00000000000..93ea726720a
--- /dev/null
+++ b/llvm/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'
+
OpenPOWER on IntegriCloud