10 TARGETS
+= memory-hotplug
19 ifneq (1, $(quicktest
))
26 #Please keep the TARGETS list alphabetically sorted
27 # Run "make quicktest=1 run_tests" or
28 # "make quicktest=1 kselftest from top level Makefile
30 TARGETS_HOTPLUG
= cpu-hotplug
31 TARGETS_HOTPLUG
+= memory-hotplug
33 # Clear LDFLAGS and MAKEFLAGS if called from main
34 # Makefile to avoid test build failures when test
35 # Makefile doesn't have explicit build rules.
42 for TARGET in
$(TARGETS
); do \
47 for TARGET in
$(TARGETS
); do \
48 make
-C
$$TARGET run_tests
; \
52 for TARGET in
$(TARGETS_HOTPLUG
); do \
57 for TARGET in
$(TARGETS_HOTPLUG
); do \
58 make
-C
$$TARGET run_full_test
; \
62 for TARGET in
$(TARGETS_HOTPLUG
); do \
63 make
-C
$$TARGET clean; \
66 INSTALL_PATH ?
= install
67 INSTALL_PATH
:= $(abspath
$(INSTALL_PATH
))
68 ALL_SCRIPT
:= $(INSTALL_PATH
)/run_kselftest.sh
72 @
# Ask all targets to install their files
73 mkdir
-p
$(INSTALL_PATH
)
74 for TARGET in
$(TARGETS
); do \
75 mkdir
-p
$(INSTALL_PATH
)/$$TARGET ; \
76 make
-C
$$TARGET INSTALL_PATH
=$(INSTALL_PATH
)/$$TARGET install; \
79 @
# Ask all targets to emit their test scripts
80 echo
"#!/bin/bash" > $(ALL_SCRIPT
)
81 echo
"cd \$$(dirname \$$0)" >> $(ALL_SCRIPT
)
82 echo
"ROOT=\$$PWD" >> $(ALL_SCRIPT
)
84 for TARGET in
$(TARGETS
); do \
85 echo
"echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT
); \
86 echo
"echo ========================================" >> $(ALL_SCRIPT
); \
87 echo
"cd $$TARGET" >> $(ALL_SCRIPT
); \
88 make
-s
--no-print-directory
-C
$$TARGET emit_tests
>> $(ALL_SCRIPT
); \
89 echo
"cd \$$ROOT" >> $(ALL_SCRIPT
); \
92 chmod u
+x
$(ALL_SCRIPT
)
94 $(error Error
: set INSTALL_PATH to use
install)
98 for TARGET in
$(TARGETS
); do \
99 make
-C
$$TARGET clean; \