mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Merge branch 'ep/coverage-report-wants-test-to-have-run'
"make coverage-report" without first running "make coverage" did not produce any meaningful result, which has been corrected. * ep/coverage-report-wants-test-to-have-run: Makefile: add a prerequisite to the coverage-report target
This commit is contained in:
commit
296bdc4f36
7
Makefile
7
Makefile
|
@ -3410,6 +3410,7 @@ coverage-clean-results:
|
|||
$(RM) coverage-untested-functions
|
||||
$(RM) -r cover_db/
|
||||
$(RM) -r cover_db_html/
|
||||
$(RM) coverage-test.made
|
||||
|
||||
coverage-clean: coverage-clean-results
|
||||
$(RM) $(addsuffix *.gcno,$(object_dirs))
|
||||
|
@ -3424,13 +3425,17 @@ coverage-compile:
|
|||
coverage-test: coverage-clean-results coverage-compile
|
||||
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" \
|
||||
DEFAULT_TEST_TARGET=test -j1 test
|
||||
touch coverage-test.made
|
||||
|
||||
coverage-test.made:
|
||||
$(MAKE) coverage-test
|
||||
|
||||
coverage-prove: coverage-clean-results coverage-compile
|
||||
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" \
|
||||
DEFAULT_TEST_TARGET=prove GIT_PROVE_OPTS="$(GIT_PROVE_OPTS) -j1" \
|
||||
-j1 test
|
||||
|
||||
coverage-report:
|
||||
coverage-report: coverage-test.made
|
||||
$(QUIET_GCOV)for dir in $(object_dirs); do \
|
||||
$(GCOV) $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue