summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc548ef)
raw | patch | inline | side by side (parent: bc548ef)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sun, 25 Jul 2010 19:52:41 +0000 (19:52 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 19:42:18 +0000 (12:42 -0700) |
Change the coverage-report target so that it doesn't generate the
coverage-untested-functions file by default. I'm adding more targets
for doing various things with the gcov files, and they shouldn't all
run by default.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
coverage-untested-functions file by default. I'm adding more targets
for doing various things with the gcov files, and they shouldn't all
run by default.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index e1e150df9c5ac0ab757bb52380bd7b67c025680f..11f1df2787d212bdbbd5dd2b380a71331e9e3488 100644 (file)
--- a/Makefile
+++ b/Makefile
$(QUIET_GCOV)for dir in $(object_dirs); do \
gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
done
+
+coverage-untested-functions: coverage-report
grep '^function.*called 0 ' *.c.gcov \
| sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \
> coverage-untested-functions