summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile.inc')
-rw-r--r--tests/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.inc b/tests/Makefile.inc
index 85d30a265108..f3a708af111d 100644
--- a/tests/Makefile.inc
+++ b/tests/Makefile.inc
@@ -94,6 +94,12 @@ $(if $(findstring $($(1)$(2)-stage), $(stages)),,
Check your $(dir $(1)$(2))Makefile.inc))
endef
+# Copy attributes of one test to another.
+# $1 - input test name
+# $2 - output test name
+copy-test = $(foreach attr,$(attributes), \
+ $(eval $(strip $(2))-$(attr) := $($(strip $(1))-$(attr))))
+
$(call add-special-class, tests)
$(call evaluate_subdirs)