diff options
author | nevar <[email protected]> | 2017-09-07 21:52:30 +0700 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-09-13 18:45:15 +0200 |
commit | 6a764de5ff077a566b7865d0a7a8f3c4c9b0c042 (patch) | |
tree | dc040ded9a96d0bb5ee969892f9a063da15d1464 /plugins/eunit.mk | |
parent | d9a9158ccbb94dbb66772a7ef437f30d3e5f652c (diff) | |
download | erlang.mk-6a764de5ff077a566b7865d0a7a8f3c4c9b0c042.tar.gz erlang.mk-6a764de5ff077a566b7865d0a7a8f3c4c9b0c042.tar.bz2 erlang.mk-6a764de5ff077a566b7865d0a7a8f3c4c9b0c042.zip |
COVER_DATA_DIR for *.coverdata
Also make COVER_REPORT_DIR not override user value (if set before
include erlang.mk).
Use incl_app in CT cover spec.
Diffstat (limited to 'plugins/eunit.mk')
-rw-r--r-- | plugins/eunit.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/eunit.mk b/plugins/eunit.mk index 9739e0e..af614f6 100644 --- a/plugins/eunit.mk +++ b/plugins/eunit.mk @@ -36,7 +36,7 @@ define eunit.erl case "$(COVER)" of "" -> ok; _ -> - cover:export("eunit.coverdata") + cover:export("$(COVER_DATA_DIR)/eunit.coverdata") end, halt() endef @@ -45,10 +45,10 @@ EUNIT_ERL_OPTS += -pa $(TEST_DIR) $(DEPS_DIR)/*/ebin $(APPS_DIR)/*/ebin $(CURDIR ifdef t ifeq (,$(findstring :,$(t))) -eunit: test-build +eunit: test-build cover-data-dir $(gen_verbose) $(call erlang,$(call eunit.erl,['$(t)']),$(EUNIT_ERL_OPTS)) else -eunit: test-build +eunit: test-build cover-data-dir $(gen_verbose) $(call erlang,$(call eunit.erl,fun $(t)/0),$(EUNIT_ERL_OPTS)) endif else @@ -58,7 +58,7 @@ EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl))) EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \ $(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)') -eunit: test-build $(if $(IS_APP),,apps-eunit) +eunit: test-build $(if $(IS_APP),,apps-eunit) cover-data-dir $(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS)) ifneq ($(ALL_APPS_DIRS),) |