mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 06:40:10 +00:00
test: run make coverage in subdirs
This commit is contained in:
parent
3d87570f86
commit
9dbbd7d09d
@ -82,20 +82,34 @@ clean:
|
||||
$(MAKE) -C $$dir clean; \
|
||||
done
|
||||
|
||||
test:
|
||||
echo Run all test
|
||||
subdirs-test:
|
||||
echo Run all tests with ASAN
|
||||
@set -e; \
|
||||
for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir test; \
|
||||
done
|
||||
|
||||
test-ble:
|
||||
echo Run all BLE tests
|
||||
subdirs-test-ble:
|
||||
echo Run all BLE tests with ASAN
|
||||
@set -e; \
|
||||
for dir in $(SUBDIRS_BLE); do \
|
||||
$(MAKE) -C $$dir test; \
|
||||
done
|
||||
|
||||
subdirs-coverage:
|
||||
echo Run all tests for coverage
|
||||
@set -e; \
|
||||
for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir coverage; \
|
||||
done
|
||||
|
||||
subdirs-coverage-ble:
|
||||
echo Run all BLE tests for coverage
|
||||
@set -e; \
|
||||
for dir in $(SUBDIRS_BLE); do \
|
||||
$(MAKE) -C $$dir coverage; \
|
||||
done
|
||||
|
||||
|
||||
coverage-pts.info:
|
||||
# download pts coverage and fix paths
|
||||
@ -110,7 +124,7 @@ coverage-unit.info: subdirs
|
||||
# delete trace data
|
||||
find . -name "*.gcda" -type f -delete
|
||||
# run tests
|
||||
$(MAKE) test
|
||||
$(MAKE) subdirs-coverage
|
||||
# collect traces
|
||||
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit.info
|
||||
# demangle
|
||||
@ -120,7 +134,7 @@ coverage-unit-ble.info: subdirs
|
||||
# delete trace data
|
||||
find . -name "*.gcda" -type f -delete
|
||||
# run tests
|
||||
$(MAKE) test-ble
|
||||
$(MAKE) subdirs-coverage-ble
|
||||
# collect traces
|
||||
lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-unit-ble.info
|
||||
# demangle
|
||||
|
Loading…
x
Reference in New Issue
Block a user