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_libperl
18 # include "test-libperl.c"
21 #define main main_test_hello
22 # include "test-hello.c"
25 #define main main_test_libelf
26 # include "test-libelf.c"
29 #define main main_test_get_current_dir_name
30 # include "test-get_current_dir_name.c"
33 #define main main_test_gettid
34 # include "test-gettid.c"
37 #define main main_test_glibc
38 # include "test-glibc.c"
41 #define main main_test_dwarf
42 # include "test-dwarf.c"
45 #define main main_test_dwarf_getlocations
46 # include "test-dwarf_getlocations.c"
49 #define main main_test_eventfd
50 # include "test-eventfd.c"
53 #define main main_test_libelf_getphdrnum
54 # include "test-libelf-getphdrnum.c"
57 #define main main_test_libelf_gelf_getnote
58 # include "test-libelf-gelf_getnote.c"
61 #define main main_test_libelf_getshdrstrndx
62 # include "test-libelf-getshdrstrndx.c"
65 #define main main_test_libunwind
66 # include "test-libunwind.c"
69 #define main main_test_libslang
70 # include "test-libslang.c"
73 #define main main_test_libbfd
74 # include "test-libbfd.c"
77 #define main main_test_libbfd_buildid
78 # include "test-libbfd-buildid.c"
81 #define main main_test_backtrace
82 # include "test-backtrace.c"
85 #define main main_test_libnuma
86 # include "test-libnuma.c"
89 #define main main_test_numa_num_possible_cpus
90 # include "test-numa_num_possible_cpus.c"
93 #define main main_test_timerfd
94 # include "test-timerfd.c"
97 #define main main_test_stackprotector_all
98 # include "test-stackprotector-all.c"
101 #define main main_test_libdw_dwarf_unwind
102 # include "test-libdw-dwarf-unwind.c"
105 #define main main_test_zlib
106 # include "test-zlib.c"
109 #define main main_test_pthread_attr_setaffinity_np
110 # include "test-pthread-attr-setaffinity-np.c"
113 #define main main_test_pthread_barrier
114 # include "test-pthread-barrier.c"
117 #define main main_test_scandirat
118 # include "test-scandirat.c"
121 #define main main_test_sched_getcpu
122 # include "test-sched_getcpu.c"
127 * Disable libbabeltrace check for test-all, because the requested
128 * library version is not released yet in most distributions. Will
132 #define main main_test_libbabeltrace
133 # include "test-libbabeltrace.c"
137 #define main main_test_lzma
138 # include "test-lzma.c"
141 #define main main_test_get_cpuid
142 # include "test-get_cpuid.c"
145 #define main main_test_bpf
146 # include "test-bpf.c"
149 #define main main_test_libcrypto
150 # include "test-libcrypto.c"
153 #define main main_test_sdt
154 # include "test-sdt.c"
157 #define main main_test_setns
158 # include "test-setns.c"
161 #define main main_test_libaio
162 # include "test-libaio.c"
165 #define main main_test_reallocarray
166 # include "test-reallocarray.c"
169 #define main main_test_disassembler_four_args
170 # include "test-disassembler-four-args.c"
173 #define main main_test_disassembler_init_styled
174 # include "test-disassembler-init-styled.c"
177 #define main main_test_libzstd
178 # include "test-libzstd.c"
181 int main(int argc, char *argv[])
183 main_test_libpython();
187 main_test_get_current_dir_name();
191 main_test_dwarf_getlocations();
193 main_test_libelf_getphdrnum();
194 main_test_libelf_gelf_getnote();
195 main_test_libelf_getshdrstrndx();
196 main_test_libunwind();
197 main_test_libslang();
199 main_test_libbfd_buildid();
200 main_test_backtrace();
202 main_test_numa_num_possible_cpus();
204 main_test_stackprotector_all();
205 main_test_libdw_dwarf_unwind();
207 main_test_pthread_attr_setaffinity_np();
208 main_test_pthread_barrier();
210 main_test_get_cpuid();
212 main_test_libcrypto();
213 main_test_scandirat();
214 main_test_sched_getcpu();
218 main_test_reallocarray();
219 main_test_disassembler_four_args();