test: fix coverage build

This commit is contained in:
Matthias Ringwald 2023-12-06 15:28:56 +01:00
parent f8a9dfacbd
commit 92e3c2d3e2

View File

@ -110,7 +110,7 @@ coverage-unit.info: subdirs-coverage
# run tests
$(MAKE) subdirs-coverage
# collect traces
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit.info
lcov --capture --ignore-errors inconsistent --ignore-errors unused --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit.info
coverage-unit-ble.info: subdirs-coverage-ble
# delete trace data
@ -118,7 +118,7 @@ coverage-unit-ble.info: subdirs-coverage-ble
# run tests
$(MAKE) subdirs-coverage-ble
# collect traces
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit-ble.info
lcov --capture --ignore-errors inconsistent --ignore-errors unused --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit-ble.info
coverage-all: coverage-unit.info