]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/testing/selftests/Makefile
10 TARGETS
+= memory-hotplug
19 ifneq (1, $(quicktest
))
27 #Please keep the TARGETS list alphabetically sorted
28 # Run "make quicktest=1 run_tests" or
29 # "make quicktest=1 kselftest from top level Makefile
31 TARGETS_HOTPLUG
= cpu-hotplug
32 TARGETS_HOTPLUG
+= memory-hotplug
34 # Clear LDFLAGS and MAKEFLAGS if called from main
35 # Makefile to avoid test build failures when test
36 # Makefile doesn't have explicit build rules.
43 for TARGET in
$(TARGETS
); do \
48 for TARGET in
$(TARGETS
); do \
49 make
-C
$$TARGET run_tests
; \
53 for TARGET in
$(TARGETS_HOTPLUG
); do \
58 for TARGET in
$(TARGETS_HOTPLUG
); do \
59 make
-C
$$TARGET run_full_test
; \
63 for TARGET in
$(TARGETS_HOTPLUG
); do \
64 make
-C
$$TARGET clean; \
67 INSTALL_PATH ?
= install
68 INSTALL_PATH
:= $(abspath
$(INSTALL_PATH
))
69 ALL_SCRIPT
:= $(INSTALL_PATH
)/run_kselftest.sh
73 @
# Ask all targets to install their files
74 mkdir
-p
$(INSTALL_PATH
)
75 for TARGET in
$(TARGETS
); do \
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; \