3 TARGETS += capabilities
16 TARGETS += memory-hotplug
25 TARGETS += sigaltstack
27 TARGETS += static_keys
30 ifneq (1, $(quicktest))
37 #Please keep the TARGETS list alphabetically sorted
38 # Run "make quicktest=1 run_tests" or
39 # "make quicktest=1 kselftest from top level Makefile
41 TARGETS_HOTPLUG = cpu-hotplug
42 TARGETS_HOTPLUG += memory-hotplug
44 # Clear LDFLAGS and MAKEFLAGS if called from main
45 # Makefile to avoid test build failures when test
46 # Makefile doesn't have explicit build rules.
53 for TARGET in $(TARGETS); do \
58 for TARGET in $(TARGETS); do \
59 make -C $$TARGET run_tests; \
63 for TARGET in $(TARGETS_HOTPLUG); do \
68 for TARGET in $(TARGETS_HOTPLUG); do \
69 make -C $$TARGET run_full_test; \
73 for TARGET in $(TARGETS_HOTPLUG); do \
74 make -C $$TARGET clean; \
78 make -C pstore run_crash
80 INSTALL_PATH ?= install
81 INSTALL_PATH := $(abspath $(INSTALL_PATH))
82 ALL_SCRIPT := $(INSTALL_PATH)/run_kselftest.sh
86 @# Ask all targets to install their files
87 mkdir -p $(INSTALL_PATH)
88 for TARGET in $(TARGETS); do \
89 make -C $$TARGET INSTALL_PATH=$(INSTALL_PATH)/$$TARGET install; \
92 @# Ask all targets to emit their test scripts
93 echo "#!/bin/bash" > $(ALL_SCRIPT)
94 echo "cd \$$(dirname \$$0)" >> $(ALL_SCRIPT)
95 echo "ROOT=\$$PWD" >> $(ALL_SCRIPT)
97 for TARGET in $(TARGETS); do \
98 echo "echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT); \
99 echo "echo ========================================" >> $(ALL_SCRIPT); \
100 echo "cd $$TARGET" >> $(ALL_SCRIPT); \
101 make -s --no-print-directory -C $$TARGET emit_tests >> $(ALL_SCRIPT); \
102 echo "cd \$$ROOT" >> $(ALL_SCRIPT); \
105 chmod u+x $(ALL_SCRIPT)
107 $(error Error: set INSTALL_PATH to use install)
111 for TARGET in $(TARGETS); do \
112 make -C $$TARGET clean; \