Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
coverage: split build target into compile and test
author
Thomas Rast
<trast@inf.ethz.ch>
Mon, 13 May 2013 21:27:25 +0000
(23:27 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 13 May 2013 22:23:47 +0000
(15:23 -0700)
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>
Makefile
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ab84621
)
diff --git
a/Makefile
b/Makefile
index 0f931a203002aec397f8b454f93df9aee97a21ad..f98296be2fc2910faa1ed97e0fda307bf511f078 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2524,10
+2524,10
@@
check-builtins::
### Test suite coverage testing
#
### Test suite coverage testing
#
-.PHONY: coverage coverage-clean coverage-
build
coverage-report
+.PHONY: coverage coverage-clean coverage-
compile coverage-test
coverage-report
coverage:
coverage:
- $(MAKE) coverage-
build
+ $(MAKE) coverage-
test
$(MAKE) coverage-report
object_dirs := $(sort $(dir $(OBJECTS)))
$(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_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
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" all
+
+coverage-test: coverage-clean-results coverage-compile
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" \
-j1 test
$(MAKE) CFLAGS="$(COVERAGE_CFLAGS)" LDFLAGS="$(COVERAGE_LDFLAGS)" \
-j1 test