aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ct.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-26 23:46:31 +0100
committerLoïc Hoguin <[email protected]>2018-11-26 23:46:31 +0100
commitf07636e66759ecdaff4ee4e9097ecbf88eb6b217 (patch)
treef3dea02e4a3d0bc9f77ff83d4381eb2a4358e816 /plugins/ct.mk
parent2277830e3f2b5b8c71438c6c7f991037d04949ba (diff)
downloaderlang.mk-f07636e66759ecdaff4ee4e9097ecbf88eb6b217.tar.gz
erlang.mk-f07636e66759ecdaff4ee4e9097ecbf88eb6b217.tar.bz2
erlang.mk-f07636e66759ecdaff4ee4e9097ecbf88eb6b217.zip
Allow running test cases without groups in CT
Diffstat (limited to 'plugins/ct.mk')
-rw-r--r--plugins/ct.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/ct.mk b/plugins/ct.mk
index b9199e9..3db994d 100644
--- a/plugins/ct.mk
+++ b/plugins/ct.mk
@@ -62,15 +62,19 @@ $(foreach app,$(ALL_APPS_DIRS),$(eval $(call ct_app_target,$(app))))
apps-ct: $(addprefix apps-ct-,$(ALL_APPS_DIRS))
endif
-ifndef t
-CT_EXTRA =
-else
+ifdef t
ifeq (,$(findstring :,$t))
CT_EXTRA = -group $t
else
t_words = $(subst :, ,$t)
CT_EXTRA = -group $(firstword $(t_words)) -case $(lastword $(t_words))
endif
+else
+ifdef c
+CT_EXTRA = -case $c
+else
+CT_EXTRA =
+endif
endif
define ct_suite_target