chore: ignore no suites tests
This commit is contained in:
parent
ec8d8b805f
commit
862817408a
17
Makefile
17
Makefile
|
@ -89,12 +89,17 @@ APPS=$(shell $(SCRIPTS)/find-apps.sh)
|
||||||
.PHONY: $(APPS:%=%-ct)
|
.PHONY: $(APPS:%=%-ct)
|
||||||
define gen-app-ct-target
|
define gen-app-ct-target
|
||||||
$1-ct: $(REBAR)
|
$1-ct: $(REBAR)
|
||||||
@$(SCRIPTS)/pre-compile.sh $(PROFILE)
|
$(eval SUITES := $(shell $(SCRIPTS)/find-suites.sh $1))
|
||||||
@ENABLE_COVER_COMPILE=1 $(REBAR) ct -c -v \
|
ifneq ($(SUITES),)
|
||||||
--readable=$(CT_READABLE) \
|
@$(SCRIPTS)/pre-compile.sh $(PROFILE)
|
||||||
--name $(CT_NODE_NAME) \
|
@ENABLE_COVER_COMPILE=1 $(REBAR) ct -c -v \
|
||||||
--cover_export_name $(CT_COVER_EXPORT_PREFIX)-$(subst /,-,$1) \
|
--readable=$(CT_READABLE) \
|
||||||
--suite $(shell $(SCRIPTS)/find-suites.sh $1)
|
--name $(CT_NODE_NAME) \
|
||||||
|
--cover_export_name $(CT_COVER_EXPORT_PREFIX)-$(subst /,-,$1) \
|
||||||
|
--suite $(SUITES)
|
||||||
|
else
|
||||||
|
@echo 'No suites found for $1'
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
$(foreach app,$(APPS),$(eval $(call gen-app-ct-target,$(app))))
|
$(foreach app,$(APPS),$(eval $(call gen-app-ct-target,$(app))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue