Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
[sfrench/cifs-2.6.git] / tools / testing / selftests / Makefile
1 TARGETS = breakpoints
2 TARGETS += cpu-hotplug
3 TARGETS += efivarfs
4 TARGETS += exec
5 TARGETS += firmware
6 TARGETS += ftrace
7 TARGETS += kcmp
8 TARGETS += memfd
9 TARGETS += memory-hotplug
10 TARGETS += mount
11 TARGETS += mqueue
12 TARGETS += net
13 TARGETS += powerpc
14 TARGETS += ptrace
15 TARGETS += size
16 TARGETS += sysctl
17 TARGETS += timers
18 TARGETS += user
19 TARGETS += vm
20 #Please keep the TARGETS list alphabetically sorted
21
22 TARGETS_HOTPLUG = cpu-hotplug
23 TARGETS_HOTPLUG += memory-hotplug
24
25 # Clear LDFLAGS and MAKEFLAGS if called from main
26 # Makefile to avoid test build failures when test
27 # Makefile doesn't have explicit build rules.
28 ifeq (1,$(MAKELEVEL))
29 undefine LDFLAGS
30 override MAKEFLAGS =
31 endif
32
33 all:
34         for TARGET in $(TARGETS); do \
35                 make -C $$TARGET; \
36         done;
37
38 run_tests: all
39         for TARGET in $(TARGETS); do \
40                 make -C $$TARGET run_tests; \
41         done;
42
43 hotplug:
44         for TARGET in $(TARGETS_HOTPLUG); do \
45                 make -C $$TARGET; \
46         done;
47
48 run_hotplug: hotplug
49         for TARGET in $(TARGETS_HOTPLUG); do \
50                 make -C $$TARGET run_full_test; \
51         done;
52
53 clean_hotplug:
54         for TARGET in $(TARGETS_HOTPLUG); do \
55                 make -C $$TARGET clean; \
56         done;
57
58 clean:
59         for TARGET in $(TARGETS); do \
60                 make -C $$TARGET clean; \
61         done;