test-all.c 4.46 KB
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
/*
 * test-all.c: Try to build all the main testcases at once.
 *
 * A well-configured system will have all the prereqs installed, so we can speed
 * up auto-detection on such systems.
 */

/*
 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
 * these 3 testcases at the top:
 */
#define main main_test_libpython
# include "test-libpython.c"
#undef main

#define main main_test_libpython_version
# include "test-libpython-version.c"
#undef main

#define main main_test_libperl
# include "test-libperl.c"
#undef main

#define main main_test_hello
# include "test-hello.c"
#undef main

#define main main_test_libelf
# include "test-libelf.c"
#undef main

#define main main_test_libelf_mmap
# include "test-libelf-mmap.c"
#undef main

37 38 39 40
#define main main_test_get_current_dir_name
# include "test-get_current_dir_name.c"
#undef main

41 42 43 44 45 46 47 48
#define main main_test_glibc
# include "test-glibc.c"
#undef main

#define main main_test_dwarf
# include "test-dwarf.c"
#undef main

49 50 51 52
#define main main_test_dwarf_getlocations
# include "test-dwarf_getlocations.c"
#undef main

53 54 55 56
#define main main_test_libelf_getphdrnum
# include "test-libelf-getphdrnum.c"
#undef main

57 58 59 60
#define main main_test_libelf_gelf_getnote
# include "test-libelf-gelf_getnote.c"
#undef main

61 62 63 64
#define main main_test_libelf_getshdrstrndx
# include "test-libelf-getshdrstrndx.c"
#undef main

65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
#define main main_test_libunwind
# include "test-libunwind.c"
#undef main

#define main main_test_libaudit
# include "test-libaudit.c"
#undef main

#define main main_test_libslang
# include "test-libslang.c"
#undef main

#define main main_test_gtk2
# include "test-gtk2.c"
#undef main

#define main main_test_gtk2_infobar
# include "test-gtk2-infobar.c"
#undef main

#define main main_test_libbfd
# include "test-libbfd.c"
#undef main

#define main main_test_backtrace
# include "test-backtrace.c"
#undef main

#define main main_test_libnuma
# include "test-libnuma.c"
#undef main
96

97 98 99 100
#define main main_test_numa_num_possible_cpus
# include "test-numa_num_possible_cpus.c"
#undef main

101 102 103 104
#define main main_test_timerfd
# include "test-timerfd.c"
#undef main

105 106 107 108
#define main main_test_stackprotector_all
# include "test-stackprotector-all.c"
#undef main

109 110 111 112
#define main main_test_libdw_dwarf_unwind
# include "test-libdw-dwarf-unwind.c"
#undef main

113 114 115 116
#define main main_test_sync_compare_and_swap
# include "test-sync-compare-and-swap.c"
#undef main

117 118 119 120
#define main main_test_zlib
# include "test-zlib.c"
#undef main

121
#define main main_test_pthread_attr_setaffinity_np
122
# include "test-pthread-attr-setaffinity-np.c"
123 124
#undef main

125 126 127 128
#define main main_test_pthread_barrier
# include "test-pthread-barrier.c"
#undef main

129 130 131 132
#define main main_test_sched_getcpu
# include "test-sched_getcpu.c"
#undef main

133 134 135 136 137 138 139
# if 0
/*
 * Disable libbabeltrace check for test-all, because the requested
 * library version is not released yet in most distributions. Will
 * reenable later.
 */

140 141 142
#define main main_test_libbabeltrace
# include "test-libbabeltrace.c"
#undef main
143
#endif
144

145 146 147 148
#define main main_test_lzma
# include "test-lzma.c"
#undef main

149 150 151 152
#define main main_test_get_cpuid
# include "test-get_cpuid.c"
#undef main

153 154 155 156
#define main main_test_bpf
# include "test-bpf.c"
#undef main

157 158 159 160
#define main main_test_libcrypto
# include "test-libcrypto.c"
#undef main

161 162 163 164
#define main main_test_sdt
# include "test-sdt.c"
#undef main

165 166 167 168
#define main main_test_setns
# include "test-setns.c"
#undef main

169 170 171 172
#define main main_test_libopencsd
# include "test-libopencsd.c"
#undef main

173 174
int main(int argc, char *argv[])
{
175 176 177 178 179 180
	main_test_libpython();
	main_test_libpython_version();
	main_test_libperl();
	main_test_hello();
	main_test_libelf();
	main_test_libelf_mmap();
181
	main_test_get_current_dir_name();
182 183
	main_test_glibc();
	main_test_dwarf();
184
	main_test_dwarf_getlocations();
185
	main_test_libelf_getphdrnum();
186
	main_test_libelf_gelf_getnote();
187
	main_test_libelf_getshdrstrndx();
188 189 190 191 192 193 194 195
	main_test_libunwind();
	main_test_libaudit();
	main_test_libslang();
	main_test_gtk2(argc, argv);
	main_test_gtk2_infobar(argc, argv);
	main_test_libbfd();
	main_test_backtrace();
	main_test_libnuma();
196
	main_test_numa_num_possible_cpus();
197
	main_test_timerfd();
198
	main_test_stackprotector_all();
199
	main_test_libdw_dwarf_unwind();
200
	main_test_sync_compare_and_swap(argc, argv);
201
	main_test_zlib();
202
	main_test_pthread_attr_setaffinity_np();
203
	main_test_pthread_barrier();
204
	main_test_lzma();
205
	main_test_get_cpuid();
206
	main_test_bpf();
207
	main_test_libcrypto();
208
	main_test_sched_getcpu();
209
	main_test_sdt();
210
	main_test_setns();
211
	main_test_libopencsd();
212 213 214

	return 0;
}