1 // SPDX-License-Identifier: GPL-2.0
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.
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"
17 #define main main_test_libpython_version
18 # include "test-libpython-version.c"
21 #define main main_test_libperl
22 # include "test-libperl.c"
25 #define main main_test_hello
26 # include "test-hello.c"
29 #define main main_test_libelf
30 # include "test-libelf.c"
33 #define main main_test_libelf_mmap
34 # include "test-libelf-mmap.c"
37 #define main main_test_get_current_dir_name
38 # include "test-get_current_dir_name.c"
41 #define main main_test_gettid
42 # include "test-gettid.c"
45 #define main main_test_glibc
46 # include "test-glibc.c"
49 #define main main_test_dwarf
50 # include "test-dwarf.c"
53 #define main main_test_dwarf_getlocations
54 # include "test-dwarf_getlocations.c"
57 #define main main_test_eventfd
58 # include "test-eventfd.c"
61 #define main main_test_libelf_getphdrnum
62 # include "test-libelf-getphdrnum.c"
65 #define main main_test_libelf_gelf_getnote
66 # include "test-libelf-gelf_getnote.c"
69 #define main main_test_libelf_getshdrstrndx
70 # include "test-libelf-getshdrstrndx.c"
73 #define main main_test_libunwind
74 # include "test-libunwind.c"
77 #define main main_test_libaudit
78 # include "test-libaudit.c"
81 #define main main_test_libslang
82 # include "test-libslang.c"
85 #define main main_test_gtk2
86 # include "test-gtk2.c"
89 #define main main_test_gtk2_infobar
90 # include "test-gtk2-infobar.c"
93 #define main main_test_libbfd
94 # include "test-libbfd.c"
97 #define main main_test_backtrace
98 # include "test-backtrace.c"
101 #define main main_test_libnuma
102 # include "test-libnuma.c"
105 #define main main_test_numa_num_possible_cpus
106 # include "test-numa_num_possible_cpus.c"
109 #define main main_test_timerfd
110 # include "test-timerfd.c"
113 #define main main_test_stackprotector_all
114 # include "test-stackprotector-all.c"
117 #define main main_test_libdw_dwarf_unwind
118 # include "test-libdw-dwarf-unwind.c"
121 #define main main_test_sync_compare_and_swap
122 # include "test-sync-compare-and-swap.c"
125 #define main main_test_zlib
126 # include "test-zlib.c"
129 #define main main_test_pthread_attr_setaffinity_np
130 # include "test-pthread-attr-setaffinity-np.c"
133 #define main main_test_pthread_barrier
134 # include "test-pthread-barrier.c"
137 #define main main_test_sched_getcpu
138 # include "test-sched_getcpu.c"
143 * Disable libbabeltrace check for test-all, because the requested
144 * library version is not released yet in most distributions. Will
148 #define main main_test_libbabeltrace
149 # include "test-libbabeltrace.c"
153 #define main main_test_lzma
154 # include "test-lzma.c"
157 #define main main_test_get_cpuid
158 # include "test-get_cpuid.c"
161 #define main main_test_bpf
162 # include "test-bpf.c"
165 #define main main_test_libcrypto
166 # include "test-libcrypto.c"
169 #define main main_test_sdt
170 # include "test-sdt.c"
173 #define main main_test_setns
174 # include "test-setns.c"
177 #define main main_test_libaio
178 # include "test-libaio.c"
181 #define main main_test_reallocarray
182 # include "test-reallocarray.c"
185 #define main main_test_disassembler_four_args
186 # include "test-disassembler-four-args.c"
189 #define main main_test_libzstd
190 # include "test-libzstd.c"
193 int main(int argc
, char *argv
[])
195 main_test_libpython();
196 main_test_libpython_version();
200 main_test_libelf_mmap();
201 main_test_get_current_dir_name();
205 main_test_dwarf_getlocations();
207 main_test_libelf_getphdrnum();
208 main_test_libelf_gelf_getnote();
209 main_test_libelf_getshdrstrndx();
210 main_test_libunwind();
211 main_test_libaudit();
212 main_test_libslang();
213 main_test_gtk2(argc
, argv
);
214 main_test_gtk2_infobar(argc
, argv
);
216 main_test_backtrace();
218 main_test_numa_num_possible_cpus();
220 main_test_stackprotector_all();
221 main_test_libdw_dwarf_unwind();
222 main_test_sync_compare_and_swap(argc
, argv
);
224 main_test_pthread_attr_setaffinity_np();
225 main_test_pthread_barrier();
227 main_test_get_cpuid();
229 main_test_libcrypto();
230 main_test_sched_getcpu();
234 main_test_reallocarray();
235 main_test_disassembler_four_args();