mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
coverage: split build target into compile and test
Confusingly, the coverage-build target in fact builds with gcov support _and runs tests_. Split it into two targets that actually are named after what they do. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ab84621754
commit
0c38a95ec8
8
Makefile
8
Makefile
|
@ -2524,10 +2524,10 @@ check-builtins::
|
|||
|
||||
### Test suite coverage testing
|
||||
#
|
||||
.PHONY: coverage coverage-clean coverage-build coverage-report
|
||||
.PHONY: coverage coverage-clean coverage-compile coverage-test coverage-report
|
||||
|
||||
coverage:
|
||||
$(MAKE) coverage-build
|
||||
$(MAKE) coverage-test
|
||||
$(MAKE) coverage-report
|
||||
|
||||
object_dirs := $(sort $(dir $(OBJECTS)))
|
||||
|
@ -2543,8 +2543,10 @@ COVERAGE_CFLAGS = $(CFLAGS) -O0 -ftest-coverage -fprofile-arcs
|
|||
COVERAGE_LDFLAGS = $(CFLAGS) -O0 -lgcov
|
||||
GCOVFLAGS = --preserve-paths --branch-probabilities --all-blocks
|
||||
|
||||
coverage-build: coverage-clean
|
||||
coverage-compile:
|
||||
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" all
|
||||
|
||||
coverage-test: coverage-clean-results coverage-compile
|
||||
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" \
|
||||
-j1 test
|
||||
|
||||
|
|
Loading…
Reference in a new issue