2 TARGETS
+= capabilities
14 TARGETS
+= memory-hotplug
23 TARGETS
+= sigaltstack
25 TARGETS
+= static_keys
27 ifneq (1, $(quicktest
))
34 #Please keep the TARGETS list alphabetically sorted
35 # Run "make quicktest=1 run_tests" or
36 # "make quicktest=1 kselftest from top level Makefile
38 TARGETS_HOTPLUG
= cpu-hotplug
39 TARGETS_HOTPLUG
+= memory-hotplug
41 # Clear LDFLAGS and MAKEFLAGS if called from main
42 # Makefile to avoid test build failures when test
43 # Makefile doesn't have explicit build rules.
50 for TARGET in
$(TARGETS
); do \
55 for TARGET in
$(TARGETS
); do \
56 make
-C
$$TARGET run_tests
; \
60 for TARGET in
$(TARGETS_HOTPLUG
); do \
65 for TARGET in
$(TARGETS_HOTPLUG
); do \
66 make
-C
$$TARGET run_full_test
; \
70 for TARGET in
$(TARGETS_HOTPLUG
); do \
71 make
-C
$$TARGET clean; \
75 make
-C pstore run_crash
77 INSTALL_PATH ?
= install
78 INSTALL_PATH
:= $(abspath
$(INSTALL_PATH
))
79 ALL_SCRIPT
:= $(INSTALL_PATH
)/run_kselftest.sh
83 @
# Ask all targets to install their files
84 mkdir
-p
$(INSTALL_PATH
)
85 for TARGET in
$(TARGETS
); do \
86 make
-C
$$TARGET INSTALL_PATH
=$(INSTALL_PATH
)/$$TARGET install; \
89 @
# Ask all targets to emit their test scripts
90 echo
"#!/bin/sh" > $(ALL_SCRIPT
)
91 echo
"cd \$$(dirname \$$0)" >> $(ALL_SCRIPT
)
92 echo
"ROOT=\$$PWD" >> $(ALL_SCRIPT
)
94 for TARGET in
$(TARGETS
); do \
95 echo
"echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT
); \
96 echo
"echo ========================================" >> $(ALL_SCRIPT
); \
97 echo
"cd $$TARGET" >> $(ALL_SCRIPT
); \
98 make
-s
--no-print-directory
-C
$$TARGET emit_tests
>> $(ALL_SCRIPT
); \
99 echo
"cd \$$ROOT" >> $(ALL_SCRIPT
); \
102 chmod u
+x
$(ALL_SCRIPT
)
104 $(error Error
: set INSTALL_PATH to use
install)
108 for TARGET in
$(TARGETS
); do \
109 make
-C
$$TARGET clean; \