Reformatted Makefile to support parallel processing of performance tests
parent
05e249def4
commit
db5a5bac58
7
Makefile
7
Makefile
|
@ -7,6 +7,8 @@ PATH_BROWSER_TEST=${PATH_TOOLS}/browser-test.html
|
||||||
PATH_TEST=./test
|
PATH_TEST=./test
|
||||||
PATH_PERF_TEST=${PATH_TEST}/perf
|
PATH_PERF_TEST=${PATH_TEST}/perf
|
||||||
|
|
||||||
|
PERF_TESTS := $(shell find "$(PATH_PERF_TEST)" -name 'perf-*.js')
|
||||||
|
|
||||||
COMBINE=${PATH_TOOLS}/combine
|
COMBINE=${PATH_TOOLS}/combine
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,8 +38,9 @@ test: default
|
||||||
done;
|
done;
|
||||||
|
|
||||||
# performance tests
|
# performance tests
|
||||||
perf: default
|
perf: default $(PERF_TESTS)
|
||||||
find "${PATH_PERF_TEST}" -name 'perf-*.js' -exec node {} \;
|
perf-%.js: default
|
||||||
|
@node $@
|
||||||
|
|
||||||
# clean up build dir
|
# clean up build dir
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue