improve output of coverage summary

Thu, 04 Jan 2024 21:24:55 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 04 Jan 2024 21:24:55 +0100
changeset 794
23c6e3e846a8
parent 793
db1c8dfe403a
child 795
00ba1bfa4ab4

improve output of coverage summary

src/Makefile file | annotate | diff | comparison | revisions
--- a/src/Makefile	Thu Jan 04 21:05:32 2024 +0100
+++ b/src/Makefile	Thu Jan 04 21:24:55 2024 +0100
@@ -38,7 +38,7 @@
 	mv *.gcov "$(build_dir)"
 
 %.c.gcov: %.c $(build_dir)/%.gcno
-	gcov -Ho "$(build_dir)" $<
+	@printf '%16s - %s\n' "$<" "`gcov -Ho "$(build_dir)" $< | grep --max-count=1 -i 'lines executed'`"
 
 $(build_dir)/%.gcno:
 	test -f "$@"

mercurial