test/coverage: add security_manager_sc run

This commit is contained in:
Matthias Ringwald 2020-09-23 15:16:14 +02:00
parent 0353b53c51
commit 2ce916b3bc
2 changed files with 6 additions and 14 deletions

View File

@ -24,6 +24,8 @@ SUBDIRS = \
sdp_client \
security_manager \
tlv_posix \
security_manager_sc \
# not testing anything in source tree
# maths \
# no unit tests
@ -42,6 +44,7 @@ SUBDIRS_BLE = \
linked_list \
ring_buffer \
security_manager \
security_manager_sc \
# tlv_posix \
# test fails

View File

@ -91,20 +91,9 @@ myclean:
rm -f *.o
rm -rf *.dSYM
rm -f *.gcno *.gcda
rm -rf SM_*
clean: myclean
test: sm_test
./sm_test
coverage: sm_test
# delete trace data
# find . -name "*.gcda" -type f -delete
# run tests
#./sm_test
# collect traces
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-sm-sc.info
# strip path prefix such that paths start with 'btstack'
sed -i.bak -e 's|/Users/mringwal/buildbot-worker/test-develop/build|btstack|' coverage-sm-sc.info
# generate html output
genhtml coverage-sm-sc.info --branch-coverage --output-directory coverage-sm-sc
python3 ./sm_test.py