From 772d5e9e190ae786fde0873d853363c9380561c2 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 24 Sep 2020 17:12:40 +0200 Subject: [PATCH] test/coverage: integrate stand alone security_manager_sc coverage data --- test/Makefile | 14 +++++++++----- test/security_manager_sc/Makefile | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/test/Makefile b/test/Makefile index aa167b3eb..b728b3b67 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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 diff --git a/test/security_manager_sc/Makefile b/test/security_manager_sc/Makefile index c2244fda1..d2a8b16d0 100644 --- a/test/security_manager_sc/Makefile +++ b/test/security_manager_sc/Makefile @@ -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