2011-03-20 02:28:40 -04:00
|
|
|
|
|
|
|
tests := $(shell find . \
|
|
|
|
-name 'test-*' \
|
|
|
|
-a ! -name 'test-combine*.js'\
|
2011-11-03 21:23:40 -04:00
|
|
|
)
|
|
|
|
cases := $(shell find . \
|
|
|
|
-name '*Test.*' \
|
2011-03-20 02:28:40 -04:00
|
|
|
)
|
|
|
|
tests_combine := test-combine*.js
|
|
|
|
|
2011-11-03 21:23:40 -04:00
|
|
|
.PHONY: FORCE test test-combine suite
|
2011-03-20 02:28:40 -04:00
|
|
|
|
|
|
|
|
2011-11-03 21:23:40 -04:00
|
|
|
default: $(tests) suite combine
|
2011-03-20 02:28:40 -04:00
|
|
|
combine: $(tests_combine)
|
|
|
|
|
2011-11-03 21:23:40 -04:00
|
|
|
suite:
|
|
|
|
@echo "ease.js Test Suite"
|
|
|
|
@echo
|
|
|
|
@NODE_PATH=".:$(NODE_PATH)" node --stack_trace_limit=20 runner.js ${cases}
|
2011-08-11 23:25:20 -04:00
|
|
|
%.js: FORCE
|
2011-10-20 23:40:30 -04:00
|
|
|
NODE_PATH=".:$(NODE_PATH)" node --stack_trace_limit=20 "$@"
|
2011-03-20 02:28:40 -04:00
|
|
|
test-%: FORCE
|
|
|
|
./$@
|