aboutsummaryrefslogtreecommitdiffstats
path: root/core/test.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-12-24 14:15:35 +0100
committerLoïc Hoguin <[email protected]>2015-12-24 14:15:35 +0100
commit769427de5f28751134ef9684398b1ad780113515 (patch)
tree13f3b296feeaa835ae43937ed454f594ea3b3bfd /core/test.mk
parent671bf97ca91f82bfccf199a1a25f17527f708a39 (diff)
downloaderlang.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/test.mk')
-rw-r--r--core/test.mk6
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