Merge branch 'for-4.9/block-irq' of git://git.kernel.dk/linux-block
[cascardo/linux.git] / tools / build / feature / test-all.c
1 /*
2  * test-all.c: Try to build all the main testcases at once.
3  *
4  * A well-configured system will have all the prereqs installed, so we can speed
5  * up auto-detection on such systems.
6  */
7
8 /*
9  * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
10  * these 3 testcases at the top:
11  */
12 #define main main_test_libpython
13 # include "test-libpython.c"
14 #undef main
15
16 #define main main_test_libpython_version
17 # include "test-libpython-version.c"
18 #undef main
19
20 #define main main_test_libperl
21 # include "test-libperl.c"
22 #undef main
23
24 #define main main_test_hello
25 # include "test-hello.c"
26 #undef main
27
28 #define main main_test_libelf
29 # include "test-libelf.c"
30 #undef main
31
32 #define main main_test_libelf_mmap
33 # include "test-libelf-mmap.c"
34 #undef main
35
36 #define main main_test_glibc
37 # include "test-glibc.c"
38 #undef main
39
40 #define main main_test_dwarf
41 # include "test-dwarf.c"
42 #undef main
43
44 #define main main_test_dwarf_getlocations
45 # include "test-dwarf_getlocations.c"
46 #undef main
47
48 #define main main_test_libelf_getphdrnum
49 # include "test-libelf-getphdrnum.c"
50 #undef main
51
52 #define main main_test_libelf_gelf_getnote
53 # include "test-libelf-gelf_getnote.c"
54 #undef main
55
56 #define main main_test_libelf_getshdrstrndx
57 # include "test-libelf-getshdrstrndx.c"
58 #undef main
59
60 #define main main_test_libunwind
61 # include "test-libunwind.c"
62 #undef main
63
64 #define main main_test_libaudit
65 # include "test-libaudit.c"
66 #undef main
67
68 #define main main_test_libslang
69 # include "test-libslang.c"
70 #undef main
71
72 #define main main_test_gtk2
73 # include "test-gtk2.c"
74 #undef main
75
76 #define main main_test_gtk2_infobar
77 # include "test-gtk2-infobar.c"
78 #undef main
79
80 #define main main_test_libbfd
81 # include "test-libbfd.c"
82 #undef main
83
84 #define main main_test_backtrace
85 # include "test-backtrace.c"
86 #undef main
87
88 #define main main_test_libnuma
89 # include "test-libnuma.c"
90 #undef main
91
92 #define main main_test_numa_num_possible_cpus
93 # include "test-numa_num_possible_cpus.c"
94 #undef main
95
96 #define main main_test_timerfd
97 # include "test-timerfd.c"
98 #undef main
99
100 #define main main_test_stackprotector_all
101 # include "test-stackprotector-all.c"
102 #undef main
103
104 #define main main_test_libdw_dwarf_unwind
105 # include "test-libdw-dwarf-unwind.c"
106 #undef main
107
108 #define main main_test_sync_compare_and_swap
109 # include "test-sync-compare-and-swap.c"
110 #undef main
111
112 #define main main_test_zlib
113 # include "test-zlib.c"
114 #undef main
115
116 #define main main_test_pthread_attr_setaffinity_np
117 # include "test-pthread-attr-setaffinity-np.c"
118 #undef main
119
120 # if 0
121 /*
122  * Disable libbabeltrace check for test-all, because the requested
123  * library version is not released yet in most distributions. Will
124  * reenable later.
125  */
126
127 #define main main_test_libbabeltrace
128 # include "test-libbabeltrace.c"
129 #undef main
130 #endif
131
132 #define main main_test_lzma
133 # include "test-lzma.c"
134 #undef main
135
136 #define main main_test_get_cpuid
137 # include "test-get_cpuid.c"
138 #undef main
139
140 #define main main_test_bpf
141 # include "test-bpf.c"
142 #undef main
143
144 #define main main_test_libcrypto
145 # include "test-libcrypto.c"
146 #undef main
147
148 #define main main_test_sdt
149 # include "test-sdt.c"
150 #undef main
151
152 int main(int argc, char *argv[])
153 {
154         main_test_libpython();
155         main_test_libpython_version();
156         main_test_libperl();
157         main_test_hello();
158         main_test_libelf();
159         main_test_libelf_mmap();
160         main_test_glibc();
161         main_test_dwarf();
162         main_test_dwarf_getlocations();
163         main_test_libelf_getphdrnum();
164         main_test_libelf_gelf_getnote();
165         main_test_libelf_getshdrstrndx();
166         main_test_libunwind();
167         main_test_libaudit();
168         main_test_libslang();
169         main_test_gtk2(argc, argv);
170         main_test_gtk2_infobar(argc, argv);
171         main_test_libbfd();
172         main_test_backtrace();
173         main_test_libnuma();
174         main_test_numa_num_possible_cpus();
175         main_test_timerfd();
176         main_test_stackprotector_all();
177         main_test_libdw_dwarf_unwind();
178         main_test_sync_compare_and_swap(argc, argv);
179         main_test_zlib();
180         main_test_pthread_attr_setaffinity_np();
181         main_test_lzma();
182         main_test_get_cpuid();
183         main_test_bpf();
184         main_test_libcrypto();
185         main_test_sdt();
186
187         return 0;
188 }