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