1 // SPDX-License-Identifier: GPL-2.0 << 2 /* 1 /* 3 * test-all.c: Try to build all the main testc 2 * test-all.c: Try to build all the main testcases at once. 4 * 3 * 5 * A well-configured system will have all the 4 * A well-configured system will have all the prereqs installed, so we can speed 6 * up auto-detection on such systems. 5 * up auto-detection on such systems. 7 */ 6 */ 8 7 9 /* 8 /* 10 * Quirk: Python and Perl headers cannot be in 9 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep 11 * these 3 testcases at the top: 10 * these 3 testcases at the top: 12 */ 11 */ 13 #define main main_test_libpython 12 #define main main_test_libpython 14 # include "test-libpython.c" 13 # include "test-libpython.c" 15 #undef main 14 #undef main 16 15 >> 16 #define main main_test_libpython_version >> 17 # include "test-libpython-version.c" >> 18 #undef main >> 19 17 #define main main_test_libperl 20 #define main main_test_libperl 18 # include "test-libperl.c" 21 # include "test-libperl.c" 19 #undef main 22 #undef main 20 23 21 #define main main_test_hello 24 #define main main_test_hello 22 # include "test-hello.c" 25 # include "test-hello.c" 23 #undef main 26 #undef main 24 27 25 #define main main_test_libelf 28 #define main main_test_libelf 26 # include "test-libelf.c" 29 # include "test-libelf.c" 27 #undef main 30 #undef main 28 31 29 #define main main_test_get_current_dir_name !! 32 #define main main_test_libelf_mmap 30 # include "test-get_current_dir_name.c" !! 33 # include "test-libelf-mmap.c" 31 #undef main << 32 << 33 #define main main_test_gettid << 34 # include "test-gettid.c" << 35 #undef main 34 #undef main 36 35 37 #define main main_test_glibc 36 #define main main_test_glibc 38 # include "test-glibc.c" 37 # include "test-glibc.c" 39 #undef main 38 #undef main 40 39 41 #define main main_test_dwarf 40 #define main main_test_dwarf 42 # include "test-dwarf.c" 41 # include "test-dwarf.c" 43 #undef main 42 #undef main 44 43 45 #define main main_test_dwarf_getlocations 44 #define main main_test_dwarf_getlocations 46 # include "test-dwarf_getlocations.c" 45 # include "test-dwarf_getlocations.c" 47 #undef main 46 #undef main 48 47 49 #define main main_test_eventfd << 50 # include "test-eventfd.c" << 51 #undef main << 52 << 53 #define main main_test_libelf_getphdrnum 48 #define main main_test_libelf_getphdrnum 54 # include "test-libelf-getphdrnum.c" 49 # include "test-libelf-getphdrnum.c" 55 #undef main 50 #undef main 56 51 57 #define main main_test_libelf_gelf_getnote 52 #define main main_test_libelf_gelf_getnote 58 # include "test-libelf-gelf_getnote.c" 53 # include "test-libelf-gelf_getnote.c" 59 #undef main 54 #undef main 60 55 61 #define main main_test_libelf_getshdrstrndx 56 #define main main_test_libelf_getshdrstrndx 62 # include "test-libelf-getshdrstrndx.c" 57 # include "test-libelf-getshdrstrndx.c" 63 #undef main 58 #undef main 64 59 65 #define main main_test_libunwind 60 #define main main_test_libunwind 66 # include "test-libunwind.c" 61 # include "test-libunwind.c" 67 #undef main 62 #undef main 68 63 >> 64 #define main main_test_libaudit >> 65 # include "test-libaudit.c" >> 66 #undef main >> 67 69 #define main main_test_libslang 68 #define main main_test_libslang 70 # include "test-libslang.c" 69 # include "test-libslang.c" 71 #undef main 70 #undef main 72 71 73 #define main main_test_libbfd !! 72 #define main main_test_gtk2 74 # include "test-libbfd.c" !! 73 # include "test-gtk2.c" >> 74 #undef main >> 75 >> 76 #define main main_test_gtk2_infobar >> 77 # include "test-gtk2-infobar.c" 75 #undef main 78 #undef main 76 79 77 #define main main_test_libbfd_buildid !! 80 #define main main_test_libbfd 78 # include "test-libbfd-buildid.c" !! 81 # include "test-libbfd.c" 79 #undef main 82 #undef main 80 83 81 #define main main_test_backtrace 84 #define main main_test_backtrace 82 # include "test-backtrace.c" 85 # include "test-backtrace.c" 83 #undef main 86 #undef main 84 87 85 #define main main_test_libnuma 88 #define main main_test_libnuma 86 # include "test-libnuma.c" 89 # include "test-libnuma.c" 87 #undef main 90 #undef main 88 91 89 #define main main_test_numa_num_possible_cpus 92 #define main main_test_numa_num_possible_cpus 90 # include "test-numa_num_possible_cpus.c" 93 # include "test-numa_num_possible_cpus.c" 91 #undef main 94 #undef main 92 95 93 #define main main_test_timerfd 96 #define main main_test_timerfd 94 # include "test-timerfd.c" 97 # include "test-timerfd.c" 95 #undef main 98 #undef main 96 99 97 #define main main_test_stackprotector_all 100 #define main main_test_stackprotector_all 98 # include "test-stackprotector-all.c" 101 # include "test-stackprotector-all.c" 99 #undef main 102 #undef main 100 103 101 #define main main_test_libdw_dwarf_unwind 104 #define main main_test_libdw_dwarf_unwind 102 # include "test-libdw-dwarf-unwind.c" 105 # include "test-libdw-dwarf-unwind.c" 103 #undef main 106 #undef main 104 107 >> 108 #define main main_test_sync_compare_and_swap >> 109 # include "test-sync-compare-and-swap.c" >> 110 #undef main >> 111 105 #define main main_test_zlib 112 #define main main_test_zlib 106 # include "test-zlib.c" 113 # include "test-zlib.c" 107 #undef main 114 #undef main 108 115 109 #define main main_test_pthread_attr_setaffinit 116 #define main main_test_pthread_attr_setaffinity_np 110 # include "test-pthread-attr-setaffinity-np.c" 117 # include "test-pthread-attr-setaffinity-np.c" 111 #undef main 118 #undef main 112 119 113 #define main main_test_pthread_barrier << 114 # include "test-pthread-barrier.c" << 115 #undef main << 116 << 117 #define main main_test_scandirat << 118 # include "test-scandirat.c" << 119 #undef main << 120 << 121 #define main main_test_sched_getcpu 120 #define main main_test_sched_getcpu 122 # include "test-sched_getcpu.c" 121 # include "test-sched_getcpu.c" 123 #undef main 122 #undef main 124 123 125 # if 0 124 # if 0 126 /* 125 /* 127 * Disable libbabeltrace check for test-all, b 126 * Disable libbabeltrace check for test-all, because the requested 128 * library version is not released yet in most 127 * library version is not released yet in most distributions. Will 129 * reenable later. 128 * reenable later. 130 */ 129 */ 131 130 132 #define main main_test_libbabeltrace 131 #define main main_test_libbabeltrace 133 # include "test-libbabeltrace.c" 132 # include "test-libbabeltrace.c" 134 #undef main 133 #undef main 135 #endif 134 #endif 136 135 137 #define main main_test_lzma 136 #define main main_test_lzma 138 # include "test-lzma.c" 137 # include "test-lzma.c" 139 #undef main 138 #undef main 140 139 141 #define main main_test_get_cpuid 140 #define main main_test_get_cpuid 142 # include "test-get_cpuid.c" 141 # include "test-get_cpuid.c" 143 #undef main 142 #undef main 144 143 145 #define main main_test_bpf 144 #define main main_test_bpf 146 # include "test-bpf.c" 145 # include "test-bpf.c" 147 #undef main 146 #undef main 148 147 149 #define main main_test_libcrypto 148 #define main main_test_libcrypto 150 # include "test-libcrypto.c" 149 # include "test-libcrypto.c" 151 #undef main 150 #undef main 152 151 153 #define main main_test_sdt 152 #define main main_test_sdt 154 # include "test-sdt.c" 153 # include "test-sdt.c" 155 #undef main 154 #undef main 156 155 157 #define main main_test_setns << 158 # include "test-setns.c" << 159 #undef main << 160 << 161 #define main main_test_libaio << 162 # include "test-libaio.c" << 163 #undef main << 164 << 165 #define main main_test_reallocarray << 166 # include "test-reallocarray.c" << 167 #undef main << 168 << 169 #define main main_test_disassembler_four_args << 170 # include "test-disassembler-four-args.c" << 171 #undef main << 172 << 173 #define main main_test_disassembler_init_style << 174 # include "test-disassembler-init-styled.c" << 175 #undef main << 176 << 177 #define main main_test_libzstd << 178 # include "test-libzstd.c" << 179 #undef main << 180 << 181 int main(int argc, char *argv[]) 156 int main(int argc, char *argv[]) 182 { 157 { 183 main_test_libpython(); 158 main_test_libpython(); >> 159 main_test_libpython_version(); 184 main_test_libperl(); 160 main_test_libperl(); 185 main_test_hello(); 161 main_test_hello(); 186 main_test_libelf(); 162 main_test_libelf(); 187 main_test_get_current_dir_name(); !! 163 main_test_libelf_mmap(); 188 main_test_gettid(); << 189 main_test_glibc(); 164 main_test_glibc(); 190 main_test_dwarf(); 165 main_test_dwarf(); 191 main_test_dwarf_getlocations(); 166 main_test_dwarf_getlocations(); 192 main_test_eventfd(); << 193 main_test_libelf_getphdrnum(); 167 main_test_libelf_getphdrnum(); 194 main_test_libelf_gelf_getnote(); 168 main_test_libelf_gelf_getnote(); 195 main_test_libelf_getshdrstrndx(); 169 main_test_libelf_getshdrstrndx(); 196 main_test_libunwind(); 170 main_test_libunwind(); >> 171 main_test_libaudit(); 197 main_test_libslang(); 172 main_test_libslang(); >> 173 main_test_gtk2(argc, argv); >> 174 main_test_gtk2_infobar(argc, argv); 198 main_test_libbfd(); 175 main_test_libbfd(); 199 main_test_libbfd_buildid(); << 200 main_test_backtrace(); 176 main_test_backtrace(); 201 main_test_libnuma(); 177 main_test_libnuma(); 202 main_test_numa_num_possible_cpus(); 178 main_test_numa_num_possible_cpus(); 203 main_test_timerfd(); 179 main_test_timerfd(); 204 main_test_stackprotector_all(); 180 main_test_stackprotector_all(); 205 main_test_libdw_dwarf_unwind(); 181 main_test_libdw_dwarf_unwind(); >> 182 main_test_sync_compare_and_swap(argc, argv); 206 main_test_zlib(); 183 main_test_zlib(); 207 main_test_pthread_attr_setaffinity_np( 184 main_test_pthread_attr_setaffinity_np(); 208 main_test_pthread_barrier(); << 209 main_test_lzma(); 185 main_test_lzma(); 210 main_test_get_cpuid(); 186 main_test_get_cpuid(); 211 main_test_bpf(); 187 main_test_bpf(); 212 main_test_libcrypto(); 188 main_test_libcrypto(); 213 main_test_scandirat(); << 214 main_test_sched_getcpu(); 189 main_test_sched_getcpu(); 215 main_test_sdt(); 190 main_test_sdt(); 216 main_test_setns(); << 217 main_test_libaio(); << 218 main_test_reallocarray(); << 219 main_test_disassembler_four_args(); << 220 main_test_libzstd(); << 221 191 222 return 0; 192 return 0; 223 } 193 } 224 194
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.