diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2021-08-09 15:00:43 +0200 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2021-08-13 18:05:41 +0000 |
commit | 9bf716ede076fe881e2c989e7cd47b5c46e26060 (patch) | |
tree | 3b2b0fed3a8f34ada4c5d1ee5f14a10f200cf6cd | |
parent | eaf5ff3607fe4c4ae14d7a59ffb4d16482c60a8a (diff) |
tests/Makefile.inc: Add copy-test macro
copy-test macro copies attributes from one test to another. It can be
used to create multiple tests with the same subset of attributes values.
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: I9c9b6b12830c7060ffe5dcf35c9486655cbd08e0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56932
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r-- | tests/Makefile.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.inc b/tests/Makefile.inc index 85d30a2651..f3a708af11 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) |