Parcourir la source

build(Makefile): app ct should produce coverdata

Zaiming (Stone) Shi il y a 3 ans
Parent
commit
bed3c8bc51
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -81,7 +81,7 @@ APPS=$(shell $(CURDIR)/scripts/find-apps.sh)
 .PHONY: $(APPS:%=%-ct)
 define gen-app-ct-target
 $1-ct: conf-segs
-	$(REBAR) ct --name $(CT_NODE_NAME) -v --suite $(shell $(CURDIR)/scripts/find-suites.sh $1)
+	@ENABLE_COVER_COMPILE=1 $(REBAR) ct --name $(CT_NODE_NAME) -c -v --suite $(shell $(CURDIR)/scripts/find-suites.sh $1)
 endef
 $(foreach app,$(APPS),$(eval $(call gen-app-ct-target,$(app))))