Skip to content

Commit 89aaeec

Browse files
dcorbachodumbbell
authored andcommitted
Split test suites into fast and slow Makefile targets
References #1136 [#136613953]
1 parent b1ce3f1 commit 89aaeec

9 files changed

+4812
-3851
lines changed

erlang.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6120,6 +6120,8 @@ CT_OPTS ?=
61206120
ifneq ($(wildcard $(TEST_DIR)),)
61216121
ifndef CT_SUITES
61226122
CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
6123+
SLOW_CT_SUITES := $(sort cluster_rename clustering_management dynamic_ha eager_sync health_check partitions priority_queue simple_ha queue_master_location unit_inbroker_backing_queue)
6124+
FAST_CT_SUITES := $(filter-out $(SLOW_CT_SUITES),$(CT_SUITES))
61236125
endif
61246126
endif
61256127
CT_SUITES ?=
@@ -6153,6 +6155,12 @@ else
61536155
ct: test-build $(if $(IS_APP),,apps-ct)
61546156
$(verbose) mkdir -p $(CURDIR)/logs/
61556157
$(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)
6158+
ct-slow: test-build $(if $(IS_APP),,apps-ct)
6159+
$(verbose) mkdir -p $(CURDIR)/logs/
6160+
$(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(SLOW_CT_SUITES)) $(CT_OPTS)
6161+
ct-fast: test-build $(if $(IS_APP),,apps-ct)
6162+
$(verbose) mkdir -p $(CURDIR)/logs/
6163+
$(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(FAST_CT_SUITES)) $(CT_OPTS)
61566164
endif
61576165

61586166
ifneq ($(ALL_APPS_DIRS),)

0 commit comments

Comments
 (0)