summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/coverage.py
AgeCommit message (Collapse)Author
2018-03-19Generate coveragereport directory for gcovr html targetJoel Klinghed
2018-03-19Exclude subprojects when doing coverageJoel Klinghed
Restore subproject exclusion for the html coverage report that existed in the ninja backend legacy target. Also exclude subprojects for the gcovr generated reports.
2018-03-19Use standalone coverage script for legacy targetsJoel Klinghed
ninja coverage -> generate all possible reports (text, xml, html) depending on gcovr and/or lcov/genhtml availability. ninja coverage-html -> generate only html report ninja coverage-xml -> generate only xml report ninja coverage-text -> generate only text report Make all targets phony, the old legacy rules where just annoying as you would have to remove the old report before being able to generate a new one. ninja coverage succeeds if it can generate at least one report. ninja coverage-* only succeeds if it can generate the requested report
2018-03-12fixup! Allow gcovr >= 3.1 to be used to generate html coverage reportJoel Klinghed
Rename gcovr_3_1 to gcovr_new_rootdir
2018-03-12fixup! Fix coverage-xml and coverage-text targets for gcovr >= 3.1Joel Klinghed
Rename gcovr_3_1 to gcovr_new_rootdir
2018-02-27Allow gcovr >= 3.1 to be used to generate html coverage reportJoel Klinghed
Modern gcovr includes html generation support so if lcov and genhtml are not available fallback to gcovr. Kept lcov and genhtml as default so to not surprise existing users of coverage-html with the different output of gcovr. gcovr added html support in 3.0 but as there already is a test for 3.1 because of the changes to -r/--rootdir I opted to only allow html generation for >= 3.1 to keep things simple.
2018-02-27Fix coverage-xml and coverage-text targets for gcovr >= 3.1Joel Klinghed
In gcovr 3.1 the -r/--rootdir argument changed meaning causing reports generated with gcovr 3.1 to not find the source files and look for *.gcda in the whole source tree rather than the build dir. So, detect gcovr version and if 3.1 give build_root to -r instead of source_root.
2018-02-08Remove all files outside the source directory from the coverage reportHenk van der Laan
Cuurently, a set of directories is filtered out from the output based on the location of system includes on most common linux distro's. This commit does away with the blacklist and implements a whitelist approach: only the files inside the source root are shown.
2018-01-30Echo coverage report uris after generation. Fixes #2805.Félix Piédallu
2017-12-17Exclude llvm/clang lib headers from test coveragesnsmac
Excludes the /usr/lib/llvm-*/include/ directory from coverage. This directory is used on Ubuntu for the libclang-dev packages
2017-08-11Exclude system sources from test coverageStefan Sonski
Exclude /usr/src/ from code coverage, this is included for e.g. gtest/gmock.
2017-05-13Strip system directories and show coverage for files not executed at all. ↵Jussi Pakkanen
Closes #1721.
2017-05-13Moved coverage commands to a standalone script.Jussi Pakkanen