aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eunit.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-24 00:09:00 +0100
committerLoïc Hoguin <[email protected]>2018-11-24 00:11:34 +0100
commitacd16b52d11627ca66b858b4c3d39e2bed41e28f (patch)
treeed13b5b7a71a423f20c474529609f2123ddc8cec /plugins/eunit.mk
parentf713103ddc22ac8fdaf80198dc7e24f9032c84b1 (diff)
downloaderlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.tar.gz
erlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.tar.bz2
erlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.zip
Improve ct/eunit tests
Also don't run eunit if there's no src/test directory.
Diffstat (limited to 'plugins/eunit.mk')
-rw-r--r--plugins/eunit.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/eunit.mk b/plugins/eunit.mk
index 4e2afb1..c94c63d 100644
--- a/plugins/eunit.mk
+++ b/plugins/eunit.mk
@@ -64,7 +64,9 @@ EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \
$(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)')
eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir
+ifneq ($(wildcard src/ $(TEST_DIR)),)
$(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS))
+endif
ifneq ($(ALL_APPS_DIRS),)
apps-eunit: