commit
3c3d927e65
15
Makefile
15
Makefile
|
@ -11,6 +11,9 @@ PERF_TESTS := $(shell find "$(PATH_PERF_TEST)" -name 'perf-*.js')
|
||||||
|
|
||||||
COMBINE=${PATH_TOOLS}/combine
|
COMBINE=${PATH_TOOLS}/combine
|
||||||
|
|
||||||
|
TESTS_JS := $(shell find "./test" -name 'test-*.js')
|
||||||
|
TESTS_SHELL := $(shell find "./test" -name 'test-[^\.]*')
|
||||||
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
||||||
|
@ -29,13 +32,11 @@ combine: mkbuild
|
||||||
cp ${PATH_BROWSER_TEST} ${PATH_BUILD}
|
cp ${PATH_BROWSER_TEST} ${PATH_BUILD}
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
test: default
|
test: default $(TESTS_JS) $(TESTS_SHELL)
|
||||||
for test in `find ./test -name 'test-*.js'`; do \
|
test-%.js: default
|
||||||
node $${test}; \
|
node $@
|
||||||
done; \
|
test-%: default
|
||||||
for test in `find ./test -regex '.*/test-[^\.]*'`; do \
|
./$@
|
||||||
./$$test; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
# performance tests
|
# performance tests
|
||||||
perf: default $(PERF_TESTS)
|
perf: default $(PERF_TESTS)
|
||||||
|
|
Loading…
Reference in New Issue