mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Exclude fuzz directory from code coverage report
gcovr fails to process fuzz/old.gcda and fuzz/old.gcno files after !7045 MR with: (WARNING) GCOV produced the following errors processing /builds/isc-projects/bind9/fuzz/old.gcda: Cannot open source file ../../fuzz/old.c Cannot open source file ../../lib/dns/include/dns/compress.h Cannot open source file ../../lib/isc/include/isc/buffer.h ... (gcovr could not infer a working directory that resolved it.) Given that code coverage inspection is meant only for BIND 9 code and not its tests and auxiliary tools, the "fuzz" directory should be excluded from being included in the code coverage report.
This commit is contained in:
parent
f9018a63cf
commit
3b5e9666c6
1 changed files with 3 additions and 3 deletions
|
|
@ -1458,9 +1458,9 @@ gcov:
|
|||
# Generate XML file in the Cobertura XML format suitable for use by GitLab
|
||||
# for the purpose of displaying code coverage information in the diff view
|
||||
# of a given merge request.
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories lib/samples --exclude tests --xml -o coverage.xml
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories lib/samples --exclude tests --html-details -o coverage.html
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories lib/samples --exclude tests -o coverage.txt
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories fuzz --exclude-directories lib/samples --exclude tests --xml -o coverage.xml
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories fuzz --exclude-directories lib/samples --exclude tests --html-details -o coverage.html
|
||||
- gcovr --root . --exclude-directories bin/tests --exclude-directories doc --exclude-directories fuzz --exclude-directories lib/samples --exclude tests -o coverage.txt
|
||||
- tail -n 3 coverage.txt
|
||||
artifacts:
|
||||
paths:
|
||||
|
|
|
|||
Loading…
Reference in a new issue