split out task to build unit tests to "build_tests" task

This commit is contained in:
Josh Holtrop 2017-01-23 21:19:40 -05:00
parent 116faff062
commit 0da4108c64

View File

@ -9,9 +9,12 @@ ifneq ($(FILTER),)
GTEST_FILTER := --gtest_filter=$(FILTER) GTEST_FILTER := --gtest_filter=$(FILTER)
endif endif
.PHONY: test .PHONY: build_tests
test: build_tests:
./waf build --targets tests ./waf build --targets tests
.PHONY: test
test: build_tests
./build/tests $(GTEST_FILTER) ./build/tests $(GTEST_FILTER)
@-rm -rf coverage @-rm -rf coverage
-gcovinator -b build -s src -gcovinator -b build -s src