mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
test/coverage: add security_manager_sc run
This commit is contained in:
parent
0353b53c51
commit
2ce916b3bc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user