mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-09 15:39:08 +00:00
test/coverage: integrate stand alone security_manager_sc coverage data
This commit is contained in:
parent
ae970bb91d
commit
772d5e9e19
@ -93,6 +93,10 @@ coverage-pts.info:
|
||||
# download pts coverage and fix paths
|
||||
curl https://bluekitchen-gmbh.com/btstack/develop/coverage-pts.info | sed "s|/Users/mringwal/buildbot-worker/auto-pts/btstack|`realpath ..`|" > coverage-pts.info
|
||||
|
||||
coverage-sm-sc.info:
|
||||
# download pts coverage and fix paths
|
||||
curl https://bluekitchen-gmbh.com/btstack/develop/coverage-sm-sc.info | sed "s|/Users/mringwal/buildbot-worker/auto-pts/btstack|`realpath ..`|" > coverage-sm-sc.info
|
||||
|
||||
|
||||
coverage-unit.info: subdirs
|
||||
# delete trace data
|
||||
@ -115,19 +119,19 @@ coverage-unit-ble.info: subdirs
|
||||
python3 coverage_demangle.py coverage-unit-ble.info
|
||||
|
||||
|
||||
coverage-ble.info: coverage-pts.info coverage-unit-ble.info
|
||||
coverage-ble.info: coverage-pts.info coverage-sm-sc.info coverage-unit-ble.info
|
||||
# combine unit-ble and pts
|
||||
lcov --rc lcov_branch_coverage=1 -a coverage-pts.info -a coverage-unit-ble.info --output-file coverage-ble.info
|
||||
lcov --rc lcov_branch_coverage=1 -a coverage-pts.info -a coverage-sm-sc.info -a coverage-unit-ble.info --output-file coverage-ble.info
|
||||
|
||||
|
||||
coverage-bat.info: coverage-ble.info
|
||||
# create bat subset from ble subset
|
||||
./coverage_subset_bat.py coverage-ble.info coverage-bat.info
|
||||
./coverage_subset_bat.py coverage-ble.info coverage-bat.info
|
||||
|
||||
|
||||
coverage.info: coverage-pts.info coverage-unit.info
|
||||
coverage.info: coverage-pts.info coverage-sm-sc.info coverage-unit.info
|
||||
# combine unit-ble and pts
|
||||
lcov --rc lcov_branch_coverage=1 -a coverage-pts.info -a coverage-unit.info --output-file coverage.info
|
||||
lcov --rc lcov_branch_coverage=1 -a coverage-pts.info -a coverage-sm-sc.info -a coverage-unit.info --output-file coverage.info
|
||||
|
||||
|
||||
coverage-all: coverage.info
|
||||
|
@ -107,6 +107,6 @@ coverage: sm_test
|
||||
# run tests
|
||||
make test
|
||||
# collect traces
|
||||
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file security_manager_sc.info
|
||||
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-sm-sc.info
|
||||
# demangle
|
||||
python3 ../coverage_demangle.py security_manager_sc.info
|
||||
python3 ../coverage_demangle.py coverage-sm-sc.info
|
||||
|
Loading…
Reference in New Issue
Block a user