test/coverage: integrate stand alone security_manager_sc coverage data

This commit is contained in:
Matthias Ringwald 2020-09-24 17:12:40 +02:00
parent ae970bb91d
commit 772d5e9e19
2 changed files with 11 additions and 7 deletions

View File

@ -93,6 +93,10 @@ coverage-pts.info:
# download pts coverage and fix paths # 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 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 coverage-unit.info: subdirs
# delete trace data # delete trace data
@ -115,19 +119,19 @@ coverage-unit-ble.info: subdirs
python3 coverage_demangle.py coverage-unit-ble.info 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 # 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 coverage-bat.info: coverage-ble.info
# create bat subset from ble subset # 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 # 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 coverage-all: coverage.info

View File

@ -107,6 +107,6 @@ coverage: sm_test
# run tests # run tests
make test make test
# collect traces # 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 # demangle
python3 ../coverage_demangle.py security_manager_sc.info python3 ../coverage_demangle.py coverage-sm-sc.info