1
0
Fork 0

Altered Makefile to support parallel tests

closure/master
Mike Gerwitz 2011-03-11 19:53:05 -05:00
parent caddb2b362
commit 672ef82aca
1 changed files with 9 additions and 9 deletions

View File

@ -7,6 +7,9 @@ PATH_BROWSER_TEST=${PATH_TOOLS}/browser-test.html
COMBINE=${PATH_TOOLS}/combine
TESTS_JS := $(shell find "./test" -name 'test-*.js')
TESTS_SHELL := $(shell find "./test" -name 'test-[^\.]*')
.PHONY: test
@ -25,14 +28,11 @@ combine: mkbuild
cp ${PATH_BROWSER_TEST} ${PATH_BUILD}
# run tests
test: default
for test in `find ./test -name 'test-*.js'`; do \
node $${test}; \
done; \
for test in `find ./test -regex '.*/test-[^\.]*'`; do \
./$$test; \
done;
test: default $(TESTS_JS) $(TESTS_SHELL)
test-%.js: default
node $@
test-%: default
./$@
# clean up build dir
clean: