[tests] Added coverage report target 'check'

Issuing 'make check' now collects unit tests coverage data and generates
a report in HTML.
This commit is contained in:
Bruno de Oliveira Abinader
2016-02-17 12:43:04 +02:00
parent ec97264431
commit cdfe4e46aa
3 changed files with 67 additions and 0 deletions

View File

@@ -166,6 +166,9 @@ tidy: Ninja/compdb
test-%: Makefile/test
./scripts/run_tests.sh "build/$(HOST_SLUG)/$(BUILDTYPE)/test" --gtest_filter=$*
check: Makefile/test
./scripts/collect-coverage.sh
#### Helper targets ############################################################
.PHONY: print-env