Tue, 08 Oct 2024 19:52:09 +0200
also report coverage for header files
src/Makefile | file | annotate | diff | comparison | revisions |
--- a/src/Makefile Tue Oct 08 18:47:45 2024 +0200 +++ b/src/Makefile Tue Oct 08 19:52:09 2024 +0200 @@ -39,7 +39,11 @@ mv *.gcov "$(build_dir)" %.c.gcov: %.c $(build_dir)/%.gcno - @printf '%16s - %s\n' "$<" "`gcov -Ho "$(build_dir)" $< | grep --max-count=1 -i 'lines executed'`" + @tabs 22 + @gcov -Ho "$(build_dir)" $< | grep -A1 'File' | grep -v '\--' \ + | sed 's/File / /' | sed 's/Lines executed:/\t/' | tr -d '\n'"'" \ + | sed -E 's/(of [0-9]+)/\1\n/g' + @tabs -8 $(build_dir)/%.gcno: test -f "$@"