blob: e903b86b742f29d31c383165dab4bec120ee04ae [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Ingo Molnar3ca576a2013-10-02 16:21:37 +02002/*
3 * test-all.c: Try to build all the main testcases at once.
4 *
5 * A well-configured system will have all the prereqs installed, so we can speed
6 * up auto-detection on such systems.
7 */
Ingo Molnarbaa9c302013-10-01 14:14:31 +02008
Ingo Molnar3ca576a2013-10-02 16:21:37 +02009/*
10 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
11 * these 3 testcases at the top:
12 */
13#define main main_test_libpython
14# include "test-libpython.c"
15#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020016
Ingo Molnar3ca576a2013-10-02 16:21:37 +020017#define main main_test_libpython_version
18# include "test-libpython-version.c"
19#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020020
Ingo Molnar3ca576a2013-10-02 16:21:37 +020021#define main main_test_libperl
22# include "test-libperl.c"
23#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020024
Ingo Molnar3ca576a2013-10-02 16:21:37 +020025#define main main_test_hello
26# include "test-hello.c"
27#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020028
Ingo Molnar3ca576a2013-10-02 16:21:37 +020029#define main main_test_libelf
30# include "test-libelf.c"
31#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020032
Ingo Molnar3ca576a2013-10-02 16:21:37 +020033#define main main_test_libelf_mmap
34# include "test-libelf-mmap.c"
35#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020036
Arnaldo Carvalho de Melo8feb8ef2018-11-19 16:56:22 -030037#define main main_test_get_current_dir_name
38# include "test-get_current_dir_name.c"
39#undef main
40
Ingo Molnar3ca576a2013-10-02 16:21:37 +020041#define main main_test_glibc
42# include "test-glibc.c"
43#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020044
Ingo Molnar3ca576a2013-10-02 16:21:37 +020045#define main main_test_dwarf
46# include "test-dwarf.c"
47#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020048
Arnaldo Carvalho de Melo492473452016-04-05 11:33:41 -030049#define main main_test_dwarf_getlocations
50# include "test-dwarf_getlocations.c"
51#undef main
52
Arnaldo Carvalho de Melo11c6cbe2018-11-21 17:42:00 -030053#define main main_test_eventfd
54# include "test-eventfd.c"
55#undef main
56
Ingo Molnar3ca576a2013-10-02 16:21:37 +020057#define main main_test_libelf_getphdrnum
58# include "test-libelf-getphdrnum.c"
59#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020060
Arnaldo Carvalho de Melo1c1a3a42016-07-12 12:19:09 -030061#define main main_test_libelf_gelf_getnote
62# include "test-libelf-gelf_getnote.c"
63#undef main
64
Arnaldo Carvalho de Melo2492c462016-07-04 19:35:47 -030065#define main main_test_libelf_getshdrstrndx
66# include "test-libelf-getshdrstrndx.c"
67#undef main
68
Ingo Molnar3ca576a2013-10-02 16:21:37 +020069#define main main_test_libunwind
70# include "test-libunwind.c"
71#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020072
Ingo Molnar3ca576a2013-10-02 16:21:37 +020073#define main main_test_libaudit
74# include "test-libaudit.c"
75#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020076
Ingo Molnar3ca576a2013-10-02 16:21:37 +020077#define main main_test_libslang
78# include "test-libslang.c"
79#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020080
Ingo Molnar3ca576a2013-10-02 16:21:37 +020081#define main main_test_gtk2
82# include "test-gtk2.c"
83#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020084
Ingo Molnar3ca576a2013-10-02 16:21:37 +020085#define main main_test_gtk2_infobar
86# include "test-gtk2-infobar.c"
87#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020088
Ingo Molnar3ca576a2013-10-02 16:21:37 +020089#define main main_test_libbfd
90# include "test-libbfd.c"
91#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020092
Ingo Molnar3ca576a2013-10-02 16:21:37 +020093#define main main_test_backtrace
94# include "test-backtrace.c"
95#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020096
Ingo Molnar3ca576a2013-10-02 16:21:37 +020097#define main main_test_libnuma
98# include "test-libnuma.c"
99#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200100
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -0300101#define main main_test_numa_num_possible_cpus
102# include "test-numa_num_possible_cpus.c"
103#undef main
104
David Ahern87419c92013-10-29 10:43:16 -0600105#define main main_test_timerfd
106# include "test-timerfd.c"
107#undef main
108
Jiri Olsabc323582013-11-28 12:33:01 +0100109#define main main_test_stackprotector_all
110# include "test-stackprotector-all.c"
111#undef main
112
Jiri Olsa45757892014-02-19 16:52:56 +0100113#define main main_test_libdw_dwarf_unwind
114# include "test-libdw-dwarf-unwind.c"
115#undef main
116
Adrian Hunterf6d31362014-07-14 13:02:53 +0300117#define main main_test_sync_compare_and_swap
118# include "test-sync-compare-and-swap.c"
119#undef main
120
Namhyung Kime92ce122014-10-31 16:51:38 +0900121#define main main_test_zlib
122# include "test-zlib.c"
123#undef main
124
Vineet Gupta459a3df2015-01-13 19:13:24 +0530125#define main main_test_pthread_attr_setaffinity_np
Jiri Olsac59a1422015-03-11 09:02:00 +0100126# include "test-pthread-attr-setaffinity-np.c"
Vineet Gupta459a3df2015-01-13 19:13:24 +0530127#undef main
128
Arnaldo Carvalho de Melo25ab5ab2017-12-05 10:14:42 -0300129#define main main_test_pthread_barrier
130# include "test-pthread-barrier.c"
131#undef main
132
Arnaldo Carvalho de Melo120010c2017-03-02 12:55:49 -0300133#define main main_test_sched_getcpu
134# include "test-sched_getcpu.c"
135#undef main
136
Jiri Olsa97e7a512015-03-11 09:00:41 +0100137# if 0
138/*
139 * Disable libbabeltrace check for test-all, because the requested
140 * library version is not released yet in most distributions. Will
141 * reenable later.
142 */
143
Jiri Olsa53d0a572015-02-20 23:16:58 +0100144#define main main_test_libbabeltrace
145# include "test-libbabeltrace.c"
146#undef main
Jiri Olsa97e7a512015-03-11 09:00:41 +0100147#endif
Jiri Olsa53d0a572015-02-20 23:16:58 +0100148
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100149#define main main_test_lzma
150# include "test-lzma.c"
151#undef main
152
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300153#define main main_test_get_cpuid
154# include "test-get_cpuid.c"
155#undef main
156
Wang Nan0c4d40d2016-01-11 13:48:01 +0000157#define main main_test_bpf
158# include "test-bpf.c"
159#undef main
160
Stephane Eranian8ee46462015-11-30 10:02:21 +0100161#define main main_test_libcrypto
162# include "test-libcrypto.c"
163#undef main
164
Masami Hiramatsue26e63b2016-07-12 19:05:56 +0900165#define main main_test_sdt
166# include "test-sdt.c"
167#undef main
168
Arnaldo Carvalho de Melo86bcdb52017-07-18 17:15:29 -0300169#define main main_test_setns
170# include "test-setns.c"
171#undef main
172
Alexey Budankov2a07d812018-11-06 12:03:35 +0300173#define main main_test_libaio
174# include "test-libaio.c"
175#undef main
176
Arnaldo Carvalho de Meloa96c03e2019-02-14 12:01:04 -0300177#define main main_test_reallocarray
178# include "test-reallocarray.c"
179#undef main
180
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200181int main(int argc, char *argv[])
182{
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200183 main_test_libpython();
184 main_test_libpython_version();
185 main_test_libperl();
186 main_test_hello();
187 main_test_libelf();
188 main_test_libelf_mmap();
Arnaldo Carvalho de Melo8feb8ef2018-11-19 16:56:22 -0300189 main_test_get_current_dir_name();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200190 main_test_glibc();
191 main_test_dwarf();
Arnaldo Carvalho de Melo492473452016-04-05 11:33:41 -0300192 main_test_dwarf_getlocations();
Arnaldo Carvalho de Melo11c6cbe2018-11-21 17:42:00 -0300193 main_test_eventfd();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200194 main_test_libelf_getphdrnum();
Arnaldo Carvalho de Melo1c1a3a42016-07-12 12:19:09 -0300195 main_test_libelf_gelf_getnote();
Arnaldo Carvalho de Melo2492c462016-07-04 19:35:47 -0300196 main_test_libelf_getshdrstrndx();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200197 main_test_libunwind();
198 main_test_libaudit();
199 main_test_libslang();
200 main_test_gtk2(argc, argv);
201 main_test_gtk2_infobar(argc, argv);
202 main_test_libbfd();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200203 main_test_backtrace();
204 main_test_libnuma();
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -0300205 main_test_numa_num_possible_cpus();
David Ahern87419c92013-10-29 10:43:16 -0600206 main_test_timerfd();
Jiri Olsabc323582013-11-28 12:33:01 +0100207 main_test_stackprotector_all();
Jiri Olsa45757892014-02-19 16:52:56 +0100208 main_test_libdw_dwarf_unwind();
Adrian Hunterf6d31362014-07-14 13:02:53 +0300209 main_test_sync_compare_and_swap(argc, argv);
Namhyung Kime92ce122014-10-31 16:51:38 +0900210 main_test_zlib();
Vineet Gupta459a3df2015-01-13 19:13:24 +0530211 main_test_pthread_attr_setaffinity_np();
Arnaldo Carvalho de Melo25ab5ab2017-12-05 10:14:42 -0300212 main_test_pthread_barrier();
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100213 main_test_lzma();
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300214 main_test_get_cpuid();
Wang Nan0c4d40d2016-01-11 13:48:01 +0000215 main_test_bpf();
Stephane Eranian8ee46462015-11-30 10:02:21 +0100216 main_test_libcrypto();
Arnaldo Carvalho de Melo120010c2017-03-02 12:55:49 -0300217 main_test_sched_getcpu();
Masami Hiramatsue26e63b2016-07-12 19:05:56 +0900218 main_test_sdt();
Arnaldo Carvalho de Melo86bcdb52017-07-18 17:15:29 -0300219 main_test_setns();
Alexey Budankov2a07d812018-11-06 12:03:35 +0300220 main_test_libaio();
Arnaldo Carvalho de Meloa96c03e2019-02-14 12:01:04 -0300221 main_test_reallocarray();
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200222
223 return 0;
224}