Skip to content

Code coverage 'permission denied' Nix devShell #13856

Answered by tmayoff
tmayoff asked this question in Q&A
Discussion options

You must be logged in to vote

Okay so this is the solution I've come to with lcov. I'm not sure if it's strictly a nix issue, as I first thought. I think I just rewrote what meson does to generate the coverage information but with the -ignore-errors source --ignore-errors inconsistent flags attached, if there's a way to pass those to meson it would be fine

coverage: test
    lcov --directory . --capture --initial --output-file build/initial.info --gcov-tool ./tools/gcov.sh --ignore-errors source --ignore-errors inconsistent
    lcov --directory . --capture --output-file build/coverage.info --gcov-tool ./tools/gcov.sh --ignore-errors source --ignore-errors inconsistent
    lcov --directory . -a build/coverage.info -a b…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tmayoff
Comment options

@eli-schwartz
Comment options

@tmayoff
Comment options

@tmayoff
Comment options

Answer selected by tmayoff
@eli-schwartz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants