2 TARGETS
+= capabilities
14 TARGETS
+= memory-hotplug
23 TARGETS
+= static_keys
25 ifneq (1, $(quicktest
))
32 #Please keep the TARGETS list alphabetically sorted
33 # Run "make quicktest=1 run_tests" or
34 # "make quicktest=1 kselftest from top level Makefile
36 TARGETS_HOTPLUG
= cpu-hotplug
37 TARGETS_HOTPLUG
+= memory-hotplug
39 # Clear LDFLAGS and MAKEFLAGS if called from main
40 # Makefile to avoid test build failures when test
41 # Makefile doesn't have explicit build rules.
48 for TARGET in
$(TARGETS
); do \
53 for TARGET in
$(TARGETS
); do \
54 make
-C
$$TARGET run_tests
; \
58 for TARGET in
$(TARGETS_HOTPLUG
); do \
63 for TARGET in
$(TARGETS_HOTPLUG
); do \
64 make
-C
$$TARGET run_full_test
; \
68 for TARGET in
$(TARGETS_HOTPLUG
); do \
69 make
-C
$$TARGET clean; \
73 make
-C pstore run_crash
75 INSTALL_PATH ?
= install
76 INSTALL_PATH
:= $(abspath
$(INSTALL_PATH
))
77 ALL_SCRIPT
:= $(INSTALL_PATH
)/run_kselftest.sh
81 @
# Ask all targets to install their files
82 mkdir
-p
$(INSTALL_PATH
)
83 for TARGET in
$(TARGETS
); do \
84 make
-C
$$TARGET INSTALL_PATH
=$(INSTALL_PATH
)/$$TARGET install; \
87 @
# Ask all targets to emit their test scripts
88 echo
"#!/bin/bash" > $(ALL_SCRIPT
)
89 echo
"cd \$$(dirname \$$0)" >> $(ALL_SCRIPT
)
90 echo
"ROOT=\$$PWD" >> $(ALL_SCRIPT
)
92 for TARGET in
$(TARGETS
); do \
93 echo
"echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT
); \
94 echo
"echo ========================================" >> $(ALL_SCRIPT
); \
95 echo
"cd $$TARGET" >> $(ALL_SCRIPT
); \
96 make
-s
--no-print-directory
-C
$$TARGET emit_tests
>> $(ALL_SCRIPT
); \
97 echo
"cd \$$ROOT" >> $(ALL_SCRIPT
); \
100 chmod u
+x
$(ALL_SCRIPT
)
102 $(error Error
: set INSTALL_PATH to use
install)
106 for TARGET in
$(TARGETS
); do \
107 make
-C
$$TARGET clean; \