mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 10:21:48 +00:00
test/coverage: replace path prefix with 'btstack'
This commit is contained in:
parent
6b7b368a28
commit
94978b3278
@ -87,6 +87,8 @@ 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
|
||||
@ -95,10 +97,12 @@ 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 | sed -e 's|/Users/mringwal/buildbot-worker/auto-pts/btstack|/root/buildbot-worker/test-develop/build|' > coverage-pts.info
|
||||
curl https://bluekitchen-gmbh.com/btstack/develop/coverage-pts.info > 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
|
||||
|
@ -3,6 +3,9 @@
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user