提交 b5eed981 编写于 作者: Æ Ævar Arnfjörð Bjarmason 提交者: Junio C Hamano

Makefile: Split out the untested functions target

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: NÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 bc548efe
...@@ -2312,6 +2312,8 @@ coverage-report: ...@@ -2312,6 +2312,8 @@ coverage-report:
$(QUIET_GCOV)for dir in $(object_dirs); do \ $(QUIET_GCOV)for dir in $(object_dirs); do \
gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \ gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
done done
coverage-untested-functions: coverage-report
grep '^function.*called 0 ' *.c.gcov \ grep '^function.*called 0 ' *.c.gcov \
| sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \ | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \
> coverage-untested-functions > coverage-untested-functions
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册