aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-10-22 16:08:50 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-22 16:40:55 +1100
commit30bc0aa7948a8a3000dab117646a829cd3a2b3ad (patch)
tree82fe1108b5e11c3627f17e0032b1b8cd964d3720 /.gitignore
parentd9e7e3544ad2a0912b67ce3a6a66cc776dc1abe9 (diff)
downloadskiboot-30bc0aa7948a8a3000dab117646a829cd3a2b3ad.zip
skiboot-30bc0aa7948a8a3000dab117646a829cd3a2b3ad.tar.gz
skiboot-30bc0aa7948a8a3000dab117646a829cd3a2b3ad.tar.bz2
Preliminary code coverage reporting infrastructure
Add support in core/test/Makefile.check to build -gcov binaries (with -lgcov and -fprofile-blah-blah) as well as some targets for producing lcov HTML code coverage reports. As part of this, I had to fix up an oddity in run-mem_region_init where that due to running under Valgrind, we'd be malloc()ed a heap with a small address, well inside the mem_regions we added but when not running under valgrind (e.g. for code coverage reporting) we would get a much larger address, outside this range and hit an assert. So, after fiddling with the memory stuff for this test, I think I have it right - it passes both under valgrind and not and does produce code coverage data. Currently, we're at this level of code coverage by unit tests: Hit Total Coverage Lines: 1936 2574 75.2 % Functions: 177 225 78.7 % Branches: 1243 2360 52.7 % The totals should largely be ignored due to the only code being counted is that linked into the unit tests (total LOC is ~50kLOC according to sloccount... so unit tests currently cover < 5%) Try the "make coverage-report" target, you'll get coverage-report directory with a LCOV HTML report Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e243b77..fa45a12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,8 @@
*~
*.o
*.d
+*.gcda
+*.gcno
*.rej
*.swp
skiboot-nosection.elf
@@ -8,6 +10,8 @@ skiboot.elf
skiboot.lds
skiboot.lid
skiboot.map
+skiboot.info
+coverage-report/
TAGS
tags
cscope.out
@@ -23,5 +27,6 @@ core/test/run-mem_region_release_unused
core/test/run-mem_region_release_unused_noalloc
core/test/run-msg
core/test/run-trace
+core/test/*-gcov
external/dump_trace
hdata/test/hdata_to_dt