mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
add make target test-<group>
Eg. invoke common test for specific test group only like $ CT_BACKEND=mnesia,redis make test-antispam_single
This commit is contained in:
parent
34b40aec66
commit
ee46333def
1 changed files with 12 additions and 0 deletions
12
Makefile.in
12
Makefile.in
|
@ -661,6 +661,17 @@ test:
|
||||||
@cd priv && ln -sf ../sql
|
@cd priv && ln -sf ../sql
|
||||||
$(REBAR) $(SKIPDEPS) ct
|
$(REBAR) $(SKIPDEPS) ct
|
||||||
|
|
||||||
|
.PHONY: test-%
|
||||||
|
define test-group-target
|
||||||
|
test-$1:
|
||||||
|
$(REBAR) $(SKIPDEPS) ct --suite=test/ejabberd_SUITE --group=$1
|
||||||
|
endef
|
||||||
|
|
||||||
|
ifneq ($(filter test-%,$(MAKECMDGOALS)),)
|
||||||
|
group_to_test := $(patsubst test-%,%,$(filter test-%,$(MAKECMDGOALS)))
|
||||||
|
$(eval $(call test-group-target,$(group_to_test)))
|
||||||
|
endif
|
||||||
|
|
||||||
test-eunit:
|
test-eunit:
|
||||||
$(REBAR) $(SKIPDEPS) eunit --verbose
|
$(REBAR) $(SKIPDEPS) eunit --verbose
|
||||||
|
|
||||||
|
@ -711,6 +722,7 @@ help:
|
||||||
@echo " hooks Run hooks validator"
|
@echo " hooks Run hooks validator"
|
||||||
@echo " test Run Common Tests suite [rebar3]"
|
@echo " test Run Common Tests suite [rebar3]"
|
||||||
@echo " test-eunit Run EUnit suite [rebar3]"
|
@echo " test-eunit Run EUnit suite [rebar3]"
|
||||||
|
@echo " test-<group> Run Common Test suite for specific group only [rebar3]"
|
||||||
@echo " xref Run cross reference analysis [rebar3]"
|
@echo " xref Run cross reference analysis [rebar3]"
|
||||||
|
|
||||||
#.
|
#.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue