test/coverage: fix paths

This commit is contained in:
Matthias Ringwald 2020-09-18 18:17:42 +02:00
parent c757f61e42
commit 3011ca4a9a
2 changed files with 1 additions and 8 deletions

View File

@ -89,8 +89,6 @@ test-coverage-ble: subdirs
$(MAKE) test-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
# strip path prefix such that paths start with 'btstack'
sed -i.bak -e 's|/Users/mringwal/buildbot-worker/test-develop/build|btstack|' coverage-unit-ble.info
test-coverage: subdirs
# delete trace data
@ -99,12 +97,10 @@ test-coverage: subdirs
$(MAKE) test
# collect traces
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit.info
# strip path prefix such that paths start with 'btstack'
sed -i.bak -e 's|/Users/mringwal/buildbot-worker/test-develop/build|btstack|' coverage-unit.info
coverage: test-coverage test-coverage-ble
# download pts coverage and fix paths
curl https://bluekitchen-gmbh.com/btstack/develop/coverage-pts.info > coverage-pts.info
curl https://bluekitchen-gmbh.com/btstack/develop/coverage-pts.info | sed 's|buildbot-worker/auto-pts/btstack/|buildbot-worker/test-develop/build|' > coverage-pts.info
# combine unit[-ble] and pts
lcov --rc lcov_branch_coverage=1 -a coverage-pts.info -a coverage-unit.info --output-file coverage.info

View File

@ -3,9 +3,6 @@
# collect traces from auto-pts run (exclude chipset/zephyr)
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --exclude "*/chipset/*" --output-file coverage-pts.info
# strip path prefix such that paths start with 'btstack'
sed -i.bak -e 's|/Users/mringwal/buildbot-worker/auto-pts/||' coverage-pts.info
# optional: download unit tests, merge and filter results like in ../Makefile
# generate html output