Skip to content

Commit

Permalink
test: show branch coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 17, 2024
1 parent 91c968c commit b119109
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ COVERAGE_FILE:=$(COVERAGE_DIR)/libopenlibm.info
coverage: clean-coverage
mkdir $(COVERAGE_DIR)
$(MAKE) test CODE_COVERAGE=1
lcov -d amd64 -d bsdsrc -d ld80 -d src --capture --output-file $(COVERAGE_FILE)
genhtml --output-directory $(COVERAGE_DIR)/ $(COVERAGE_FILE)
lcov -d amd64 -d bsdsrc -d ld80 -d src \
--rc lcov_branch_coverage=1 --capture --output-file $(COVERAGE_FILE)
genhtml --legend --branch-coverage \
--title "Openlibm commit `git rev-parse HEAD`" \
--output-directory $(COVERAGE_DIR)/ \
$(COVERAGE_FILE)

# Zero coverage statistics and Delete report
clean-coverage:
Expand Down

0 comments on commit b119109

Please sign in to comment.