btstack/test/Makefile

61 lines
1006 B
Makefile
Raw Normal View History

# Makefile to build and run all tests
SUBDIRS = \
2015-07-02 10:46:45 +02:00
att_db \
avdtp \
avrcp \
2019-09-14 22:36:27 +02:00
base64 \
ble_client \
btstack_link_key_db \
2019-09-14 22:36:27 +02:00
crypto \
des_iterator \
gatt_client \
2015-08-20 17:06:54 +02:00
hfp \
2019-09-14 22:36:27 +02:00
hid_parser \
linked_list \
2019-09-14 22:36:27 +02:00
maths \
obex \
ring_buffer \
sdp_client \
2015-07-16 23:28:09 +02:00
security_manager \
2019-09-14 22:36:27 +02:00
tlv_posix \
# test fails
# flash_tlv \
# map_test \
# mesh \
# sdp \
# not unit-tests
# map_client \
# sbc \
subdirs:
echo Building all tests
@set -e; \
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir; \
done
clean:
echo Clean all test
@set -e; \
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean; \
done
test:
echo Run all test
@set -e; \
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir test; \
done
2019-09-17 17:11:24 +02:00
coverage: test
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/usr/*" --exclude "*/3rd-party/tinydir/*" --exclude "*/platform/posix/*" --exclude "*/test/*" --output-file coverage.info
genhtml coverage.info --branch-coverage --output-directory coverage-html