Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / build / feature / test-all.c
blob464873883396e9c7e85795174f019ed8106a3192
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * test-all.c: Try to build all the main testcases at once.
5 * A well-configured system will have all the prereqs installed, so we can speed
6 * up auto-detection on such systems.
7 */
9 /*
10 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
11 * these 3 testcases at the top:
13 #define main main_test_libpython
14 # include "test-libpython.c"
15 #undef main
17 #define main main_test_libpython_version
18 # include "test-libpython-version.c"
19 #undef main
21 #define main main_test_libperl
22 # include "test-libperl.c"
23 #undef main
25 #define main main_test_hello
26 # include "test-hello.c"
27 #undef main
29 #define main main_test_libelf
30 # include "test-libelf.c"
31 #undef main
33 #define main main_test_get_current_dir_name
34 # include "test-get_current_dir_name.c"
35 #undef main
37 #define main main_test_gettid
38 # include "test-gettid.c"
39 #undef main
41 #define main main_test_glibc
42 # include "test-glibc.c"
43 #undef main
45 #define main main_test_dwarf
46 # include "test-dwarf.c"
47 #undef main
49 #define main main_test_dwarf_getlocations
50 # include "test-dwarf_getlocations.c"
51 #undef main
53 #define main main_test_eventfd
54 # include "test-eventfd.c"
55 #undef main
57 #define main main_test_libelf_getphdrnum
58 # include "test-libelf-getphdrnum.c"
59 #undef main
61 #define main main_test_libelf_gelf_getnote
62 # include "test-libelf-gelf_getnote.c"
63 #undef main
65 #define main main_test_libelf_getshdrstrndx
66 # include "test-libelf-getshdrstrndx.c"
67 #undef main
69 #define main main_test_libunwind
70 # include "test-libunwind.c"
71 #undef main
73 #define main main_test_libslang
74 # include "test-libslang.c"
75 #undef main
77 #define main main_test_libbfd
78 # include "test-libbfd.c"
79 #undef main
81 #define main main_test_libbfd_buildid
82 # include "test-libbfd-buildid.c"
83 #undef main
85 #define main main_test_backtrace
86 # include "test-backtrace.c"
87 #undef main
89 #define main main_test_libnuma
90 # include "test-libnuma.c"
91 #undef main
93 #define main main_test_numa_num_possible_cpus
94 # include "test-numa_num_possible_cpus.c"
95 #undef main
97 #define main main_test_timerfd
98 # include "test-timerfd.c"
99 #undef main
101 #define main main_test_stackprotector_all
102 # include "test-stackprotector-all.c"
103 #undef main
105 #define main main_test_libdw_dwarf_unwind
106 # include "test-libdw-dwarf-unwind.c"
107 #undef main
109 #define main main_test_sync_compare_and_swap
110 # include "test-sync-compare-and-swap.c"
111 #undef main
113 #define main main_test_zlib
114 # include "test-zlib.c"
115 #undef main
117 #define main main_test_pthread_attr_setaffinity_np
118 # include "test-pthread-attr-setaffinity-np.c"
119 #undef main
121 #define main main_test_pthread_barrier
122 # include "test-pthread-barrier.c"
123 #undef main
125 #define main main_test_sched_getcpu
126 # include "test-sched_getcpu.c"
127 #undef main
129 # if 0
131 * Disable libbabeltrace check for test-all, because the requested
132 * library version is not released yet in most distributions. Will
133 * reenable later.
136 #define main main_test_libbabeltrace
137 # include "test-libbabeltrace.c"
138 #undef main
139 #endif
141 #define main main_test_lzma
142 # include "test-lzma.c"
143 #undef main
145 #define main main_test_get_cpuid
146 # include "test-get_cpuid.c"
147 #undef main
149 #define main main_test_bpf
150 # include "test-bpf.c"
151 #undef main
153 #define main main_test_libcrypto
154 # include "test-libcrypto.c"
155 #undef main
157 #define main main_test_sdt
158 # include "test-sdt.c"
159 #undef main
161 #define main main_test_setns
162 # include "test-setns.c"
163 #undef main
165 #define main main_test_libaio
166 # include "test-libaio.c"
167 #undef main
169 #define main main_test_reallocarray
170 # include "test-reallocarray.c"
171 #undef main
173 #define main main_test_disassembler_four_args
174 # include "test-disassembler-four-args.c"
175 #undef main
177 #define main main_test_libzstd
178 # include "test-libzstd.c"
179 #undef main
181 int main(int argc, char *argv[])
183 main_test_libpython();
184 main_test_libpython_version();
185 main_test_libperl();
186 main_test_hello();
187 main_test_libelf();
188 main_test_get_current_dir_name();
189 main_test_gettid();
190 main_test_glibc();
191 main_test_dwarf();
192 main_test_dwarf_getlocations();
193 main_test_eventfd();
194 main_test_libelf_getphdrnum();
195 main_test_libelf_gelf_getnote();
196 main_test_libelf_getshdrstrndx();
197 main_test_libunwind();
198 main_test_libslang();
199 main_test_libbfd();
200 main_test_libbfd_buildid();
201 main_test_backtrace();
202 main_test_libnuma();
203 main_test_numa_num_possible_cpus();
204 main_test_timerfd();
205 main_test_stackprotector_all();
206 main_test_libdw_dwarf_unwind();
207 main_test_sync_compare_and_swap(argc, argv);
208 main_test_zlib();
209 main_test_pthread_attr_setaffinity_np();
210 main_test_pthread_barrier();
211 main_test_lzma();
212 main_test_get_cpuid();
213 main_test_bpf();
214 main_test_libcrypto();
215 main_test_sched_getcpu();
216 main_test_sdt();
217 main_test_setns();
218 main_test_libaio();
219 main_test_reallocarray();
220 main_test_disassembler_four_args();
221 main_test_libzstd();
223 return 0;