Support passing a test filter to make test

This commit is contained in:
Thomas Goyne 2014-07-04 20:41:25 -07:00
parent 7cafee39fc
commit c0c05e982a
1 changed files with 2 additions and 1 deletions

View File

@ -29,8 +29,9 @@ endif
$(d)data: $(d)setup.sh
cd $(TOP)tests; ./setup.sh
gtest_filter ?= *
test-libaegisub: $(d)run $(d)data
cd $(TOP)tests; ./run
cd $(TOP)tests; ./run --gtest_filter="$(gtest_filter)"
test: $(subst $(GTEST_FILE).cc,test-libaegisub,$(wildcard $(GTEST_FILE).cc))