diff options
author | nevar <[email protected]> | 2016-11-25 14:08:46 +0700 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-11-26 00:34:55 +0100 |
commit | e519628eec711ff295096358652f60f42828e6b4 (patch) | |
tree | 602758987520ad5c6d539efc1652b4203fe3cccf /plugins | |
parent | 5b67a3220b9fcc50a23064b52d3d328ac5e139f7 (diff) | |
download | erlang.mk-e519628eec711ff295096358652f60f42828e6b4.tar.gz erlang.mk-e519628eec711ff295096358652f60f42828e6b4.tar.bz2 erlang.mk-e519628eec711ff295096358652f60f42828e6b4.zip |
Add CT_LOGS_DIR
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ct.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/ct.mk b/plugins/ct.mk index 71a61de..9276daf 100644 --- a/plugins/ct.mk +++ b/plugins/ct.mk @@ -13,6 +13,7 @@ CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,* endif endif CT_SUITES ?= +CT_LOGS_DIR ?= $(CURDIR)/logs # Core targets. @@ -35,13 +36,13 @@ CT_RUN = ct_run \ -noinput \ -pa $(CURDIR)/ebin $(DEPS_DIR)/*/ebin $(APPS_DIR)/*/ebin $(TEST_DIR) \ -dir $(TEST_DIR) \ - -logdir $(CURDIR)/logs + -logdir $(CT_LOGS_DIR) ifeq ($(CT_SUITES),) ct: $(if $(IS_APP),,apps-ct) else ct: test-build $(if $(IS_APP),,apps-ct) - $(verbose) mkdir -p $(CURDIR)/logs/ + $(verbose) mkdir -p $(CT_LOGS_DIR) $(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS) endif @@ -69,11 +70,11 @@ endif define ct_suite_target ct-$(1): test-build - $(verbose) mkdir -p $(CURDIR)/logs/ + $(verbose) mkdir -p $(CT_LOGS_DIR) $(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(1)) $(CT_EXTRA) $(CT_OPTS) endef $(foreach test,$(CT_SUITES),$(eval $(call ct_suite_target,$(test)))) distclean-ct: - $(gen_verbose) rm -rf $(CURDIR)/logs/ + $(gen_verbose) rm -rf $(CT_LOGS_DIR) |