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_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_libelf_getphdrnum
50 # include "test-libelf-getphdrnum.c"
53 #define main main_test_libelf_gelf_getnote
54 # include "test-libelf-gelf_getnote.c"
57 #define main main_test_libelf_getshdrstrndx
58 # include "test-libelf-getshdrstrndx.c"
61 #define main main_test_libunwind
62 # include "test-libunwind.c"
65 #define main main_test_libaudit
66 # include "test-libaudit.c"
69 #define main main_test_libslang
70 # include "test-libslang.c"
73 #define main main_test_gtk2
74 # include "test-gtk2.c"
77 #define main main_test_gtk2_infobar
78 # include "test-gtk2-infobar.c"
81 #define main main_test_libbfd
82 # include "test-libbfd.c"
85 #define main main_test_backtrace
86 # include "test-backtrace.c"
89 #define main main_test_libnuma
90 # include "test-libnuma.c"
93 #define main main_test_numa_num_possible_cpus
94 # include "test-numa_num_possible_cpus.c"
97 #define main main_test_timerfd
98 # include "test-timerfd.c"
101 #define main main_test_stackprotector_all
102 # include "test-stackprotector-all.c"
105 #define main main_test_libdw_dwarf_unwind
106 # include "test-libdw-dwarf-unwind.c"
109 #define main main_test_sync_compare_and_swap
110 # include "test-sync-compare-and-swap.c"
113 #define main main_test_zlib
114 # include "test-zlib.c"
117 #define main main_test_pthread_attr_setaffinity_np
118 # include "test-pthread-attr-setaffinity-np.c"
121 #define main main_test_pthread_barrier
122 # include "test-pthread-barrier.c"
125 #define main main_test_sched_getcpu
126 # include "test-sched_getcpu.c"
131 * Disable libbabeltrace check for test-all, because the requested
132 * library version is not released yet in most distributions. Will
136 #define main main_test_libbabeltrace
137 # include "test-libbabeltrace.c"
141 #define main main_test_lzma
142 # include "test-lzma.c"
145 #define main main_test_get_cpuid
146 # include "test-get_cpuid.c"
149 #define main main_test_bpf
150 # include "test-bpf.c"
153 #define main main_test_libcrypto
154 # include "test-libcrypto.c"
157 #define main main_test_sdt
158 # include "test-sdt.c"
161 #define main main_test_setns
162 # include "test-setns.c"
165 #define main main_test_libopencsd
166 # include "test-libopencsd.c"
169 int main(int argc
, char *argv
[])
171 main_test_libpython();
172 main_test_libpython_version();
176 main_test_libelf_mmap();
179 main_test_dwarf_getlocations();
180 main_test_libelf_getphdrnum();
181 main_test_libelf_gelf_getnote();
182 main_test_libelf_getshdrstrndx();
183 main_test_libunwind();
184 main_test_libaudit();
185 main_test_libslang();
186 main_test_gtk2(argc
, argv
);
187 main_test_gtk2_infobar(argc
, argv
);
189 main_test_backtrace();
191 main_test_numa_num_possible_cpus();
193 main_test_stackprotector_all();
194 main_test_libdw_dwarf_unwind();
195 main_test_sync_compare_and_swap(argc
, argv
);
197 main_test_pthread_attr_setaffinity_np();
198 main_test_pthread_barrier();
200 main_test_get_cpuid();
202 main_test_libcrypto();
203 main_test_sched_getcpu();
206 main_test_libopencsd();