Test cases are once again dynamically discovered on suite run
Simplifies development; I got a little autoconf-crazy.perfodd
parent
e03454b2b9
commit
e0607c49c5
|
@ -34,6 +34,9 @@ path_combine_output_full_min = $(path_combine_output_full:.js=.min.js)
|
||||||
src_js = @SRC_JS@
|
src_js = @SRC_JS@
|
||||||
path_externs_internal = $(path_build)/externs-internal.js
|
path_externs_internal = $(path_build)/externs-internal.js
|
||||||
|
|
||||||
|
test_cases=$(shell find test/ -name '*Test.*' | tr '\n' ' ' )
|
||||||
|
src_tests=$(shell find test/ -name test-* | tr '\n' ' ' )
|
||||||
|
|
||||||
combine = $(path_tools)/combine
|
combine = $(path_tools)/combine
|
||||||
compiler = @CCJAR@
|
compiler = @CCJAR@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
@ -106,7 +109,7 @@ html-single:
|
||||||
$(MAKE) -C "$(path_doc)" html-single
|
$(MAKE) -C "$(path_doc)" html-single
|
||||||
|
|
||||||
test: check
|
test: check
|
||||||
check: @SRC_TESTS@ test-suite
|
check: $(src_tests) test-suite
|
||||||
|
|
||||||
# performance tests
|
# performance tests
|
||||||
perf: @PERF_TESTS@
|
perf: @PERF_TESTS@
|
||||||
|
@ -130,7 +133,7 @@ if HAS_NODE
|
||||||
@echo "ease.js Test Suite"
|
@echo "ease.js Test Suite"
|
||||||
@echo
|
@echo
|
||||||
@NODE_PATH="$(path_test):$(NODE_PATH)" $(NODE) --stack_trace_limit=20 \
|
@NODE_PATH="$(path_test):$(NODE_PATH)" $(NODE) --stack_trace_limit=20 \
|
||||||
$(path_test)/runner.js @TEST_CASES@
|
$(path_test)/runner.js $(test_cases)
|
||||||
else
|
else
|
||||||
@echo "Node.js must be installed in order to run the test suite"
|
@echo "Node.js must be installed in order to run the test suite"
|
||||||
@exit 1
|
@exit 1
|
||||||
|
|
12
configure.ac
12
configure.ac
|
@ -81,18 +81,6 @@ AS_IF(test "$JAVA" -a ! "$CCJAR",
|
||||||
|
|
||||||
AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"])
|
AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"])
|
||||||
|
|
||||||
# unit tests (old test system; refactoring needed)
|
|
||||||
AC_MSG_CHECKING([for unit tests])
|
|
||||||
SRC_TESTS="$( find test/ -name test-* | tr '\n' ' ' )"
|
|
||||||
AC_SUBST(SRC_TESTS)
|
|
||||||
AS_IF([test "$SRC_TESTS"], [AC_MSG_RESULT(ok)], [AC_MSG_WARN(none found)])
|
|
||||||
|
|
||||||
# test cases (new test system)
|
|
||||||
AC_MSG_CHECKING([for test cases])
|
|
||||||
TEST_CASES="$( find test/ -name '*Test.*' | tr '\n' ' ' )"
|
|
||||||
AC_SUBST(TEST_CASES)
|
|
||||||
AS_IF([test "$TEST_CASES"], [AC_MSG_RESULT(ok)], [AC_MSG_WARN(none found)])
|
|
||||||
|
|
||||||
# check for performance tests
|
# check for performance tests
|
||||||
AC_MSG_CHECKING([for performance tests])
|
AC_MSG_CHECKING([for performance tests])
|
||||||
PERF_TESTS=$( find test/perf -name 'perf-*.js' | tr '\n' ' ' )
|
PERF_TESTS=$( find test/perf -name 'perf-*.js' | tr '\n' ' ' )
|
||||||
|
|
Loading…
Reference in New Issue