2012-05-11 19:07:44 -04:00
|
|
|
##
|
|
|
|
# ease.js test Makefile
|
|
|
|
#
|
|
|
|
# Responsible for running the ease.js test suite.
|
|
|
|
#
|
2013-12-20 00:49:06 -05:00
|
|
|
# Copyright (C) 2011, 2012 Mike Gerwitz
|
2012-05-11 19:07:44 -04:00
|
|
|
#
|
|
|
|
# This file is part of ease.js.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
##
|
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
|
|
|
|
./$@
|