add FILTER variable to Makefile to only run some tests

This commit is contained in:
Josh Holtrop 2017-01-15 19:34:41 -05:00
parent 68eefcb60b
commit 21ba393c45

View File

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