diff options
author | Loïc Hoguin <[email protected]> | 2015-12-24 14:15:35 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-12-24 14:15:35 +0100 |
commit | 769427de5f28751134ef9684398b1ad780113515 (patch) | |
tree | 13f3b296feeaa835ae43937ed454f594ea3b3bfd /core | |
parent | 671bf97ca91f82bfccf199a1a25f17527f708a39 (diff) | |
download | erlang.mk-769427de5f28751134ef9684398b1ad780113515.tar.gz erlang.mk-769427de5f28751134ef9684398b1ad780113515.tar.bz2 erlang.mk-769427de5f28751134ef9684398b1ad780113515.zip |
Add EUnit tests and documentation
Also includes a fix for multi-application repositories.
Diffstat (limited to 'core')
-rw-r--r-- | core/test.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/test.mk b/core/test.mk index d7b0bfe..12ff208 100644 --- a/core/test.mk +++ b/core/test.mk @@ -29,6 +29,11 @@ test-dir: $(call core_find,$(TEST_DIR)/,*.erl) -pa ebin/ endif +ifeq ($(wildcard src),) +test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS) +test-build:: clean deps test-deps + $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)" +else ifeq ($(wildcard ebin/test),) test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS) test-build:: clean deps test-deps $(PROJECT).d @@ -46,3 +51,4 @@ clean-test-dir: ifneq ($(wildcard $(TEST_DIR)/*.beam),) $(gen_verbose) rm -f $(TEST_DIR)/*.beam endif +endif |