diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-04-08 12:07:12 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-04-08 12:07:12 +0100 |
commit | cba5da5382d73b7ca6b46157889b14e5f6e2ee16 (patch) | |
tree | ed848cbabaad16745672a0a99ccba22366ae0b90 /Makefile | |
parent | 14b50b9543181de6bf154dcf0edb385616506bbc (diff) | |
download | gitano-cba5da5382d73b7ca6b46157889b14e5f6e2ee16.tar.gz |
makes GTT coverage optional
The gitano-test-tool coverage was consuming a lot of time and slowing down
coverage test running. In addition it was around 2/3 of all processes covered
and as such was making coverage report generation slow too.
This change adds a COVER_GTT makefile argument which must be set to 'yes' in
order for COVERAGE=yes test runs to also cover gtt.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -96,6 +96,21 @@ $(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugi chmod 755 $2 endef +ifeq ($(COVER_GTT),yes) +define GEN_LOCAL_TESTING_BIN + +$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2 $(shell pwd)/extras/luacov/src $(shell pwd)/.coverage/ +chmod 755 $2 + +endef +else +define GEN_LOCAL_TESTING_BIN + +$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2 +chmod 755 $2 + +endef +endif else define GEN_LOCAL_BIN @@ -103,6 +118,12 @@ $(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugi chmod 755 $2 endef +define GEN_LOCAL_TESTING_BIN + +$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2 +chmod 755 $2 + +endef endif define GEN_INSTALL_BIN @@ -163,7 +184,7 @@ bin/%: bin/%.in $(GEN_BIN) FORCE @$(call GEN_LOCAL_BIN,$<,$@) testing/%: testing/%.in $(GEN_BIN) FORCE - @$(call GEN_LOCAL_BIN,$<,$@) + @$(call GEN_LOCAL_TESTING_BIN,$<,$@) lib/gitano/%.lua: lib/gitano/%.lua.in $(GEN_BIN) FORCE @$(call GEN_LOCAL_MOD,$<,$@) |