summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2019-09-26 18:52:18 +0100
committerShuah Khan <skhan@linuxfoundation.org>2019-10-01 13:19:04 -0600
commit3a24f7f6b610910ee328df11392e21925cefdecb (patch)
treef96f3db761cf46151968d7549b28f8f50cc2fa5d /tools
parent17eac6c2db8b2cdfe33d40229bdda2acd86b304a (diff)
downloadlinux-stable-3a24f7f6b610910ee328df11392e21925cefdecb.tar.gz
linux-stable-3a24f7f6b610910ee328df11392e21925cefdecb.tar.bz2
linux-stable-3a24f7f6b610910ee328df11392e21925cefdecb.zip
kselftest: add capability to skip chosen TARGETS
Let the user specify an optional TARGETS skiplist through the new optional SKIP_TARGETS Makefile variable. It is easier to skip at will using a reduced and well defined list of possibly problematic targets with SKIP_TARGETS than to provide a partially stripped down list of good targets using the usual TARGETS variable. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index bad18145ed1a..e08f26ca4071 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -63,6 +63,13 @@ TARGETS += zram
TARGETS_HOTPLUG = cpu-hotplug
TARGETS_HOTPLUG += memory-hotplug
+# User can optionally provide a TARGETS skiplist.
+SKIP_TARGETS ?=
+ifneq ($(SKIP_TARGETS),)
+ TMP := $(filter-out $(SKIP_TARGETS), $(TARGETS))
+ override TARGETS := $(TMP)
+endif
+
# Clear LDFLAGS and MAKEFLAGS if called from main
# Makefile to avoid test build failures when test
# Makefile doesn't have explicit build rules.