2 FLAGS_COVERAGE
:= --coverage
-g
3 COVERAGE_LDLIBS
:= --coverage
9 COVERAGE_DIR
= $(TARGET_OUTPUT_DIR
)/coverage
10 COVERAGE_DATA_DIR
= $(COVERAGE_DIR
)/data
11 COVERAGE_HTML_DIR
= $(COVERAGE_DIR
)/html
14 #COVSTART = geninfo -q --no-checksum -b $(topdir) -i $(topdir)/src
15 #COVEND = geninfo -q --no-checksum -b $(topdir) $(topdir)/src
17 LCOVOPTS
= --no-checksum
-q
-b
$(topdir
) -d
$(TARGET_OUTPUT_DIR
)/src
19 COVSTART
= lcov
-c
-i
$(LCOVOPTS
) -o
$(COVERAGE_DATA_DIR
)/app_base.
info
20 COVEND
= lcov
-c
$(LCOVOPTS
) -o
$(COVERAGE_DATA_DIR
)/app_test.
info
21 COVMERGE
= lcov
-q
-a
$(COVERAGE_DATA_DIR
)/app_base.
info -a
$(COVERAGE_DATA_DIR
)/app_test.
info -o
$(COVERAGE_DATA_DIR
)/app_total.
info
22 COVCLEAN
= lcov
-q
-r
$(COVERAGE_DATA_DIR
)/app_total.
info "/usr/*" -o
$(COVERAGE_DATA_DIR
)/app_totalr.
info
23 COVPROC
= genhtml
--frames
-q
-o
$(COVERAGE_HTML_DIR
) $(COVERAGE_DATA_DIR
)/app_totalr.
info
25 covstart
: FORCE |
$(COVERAGE_DATA_DIR
)/dirstamp
26 @
$(NQ
)echo
"coverage initialise"
30 covend
: FORCE |
$(COVERAGE_DATA_DIR
)/dirstamp
$(COVERAGE_HTML_DIR
)/dirstamp
31 @
$(NQ
)echo
"coverage report"