blob: 699e43627397b5c3008cd74008016f4812550c77 [file] [log] [blame]
Ingo Molnar3ca576a2013-10-02 16:21:37 +02001/*
2 * test-all.c: Try to build all the main testcases at once.
3 *
4 * A well-configured system will have all the prereqs installed, so we can speed
5 * up auto-detection on such systems.
6 */
Ingo Molnarbaa9c302013-10-01 14:14:31 +02007
Ingo Molnar3ca576a2013-10-02 16:21:37 +02008/*
9 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
10 * these 3 testcases at the top:
11 */
12#define main main_test_libpython
13# include "test-libpython.c"
14#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020015
Ingo Molnar3ca576a2013-10-02 16:21:37 +020016#define main main_test_libpython_version
17# include "test-libpython-version.c"
18#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020019
Ingo Molnar3ca576a2013-10-02 16:21:37 +020020#define main main_test_libperl
21# include "test-libperl.c"
22#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020023
Ingo Molnar3ca576a2013-10-02 16:21:37 +020024#define main main_test_hello
25# include "test-hello.c"
26#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020027
Ingo Molnar3ca576a2013-10-02 16:21:37 +020028#define main main_test_libelf
29# include "test-libelf.c"
30#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020031
Ingo Molnar3ca576a2013-10-02 16:21:37 +020032#define main main_test_libelf_mmap
33# include "test-libelf-mmap.c"
34#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020035
Ingo Molnar3ca576a2013-10-02 16:21:37 +020036#define main main_test_glibc
37# include "test-glibc.c"
38#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020039
Ingo Molnar3ca576a2013-10-02 16:21:37 +020040#define main main_test_dwarf
41# include "test-dwarf.c"
42#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020043
Arnaldo Carvalho de Melo492473452016-04-05 11:33:41 -030044#define main main_test_dwarf_getlocations
45# include "test-dwarf_getlocations.c"
46#undef main
47
Ingo Molnar3ca576a2013-10-02 16:21:37 +020048#define main main_test_libelf_getphdrnum
49# include "test-libelf-getphdrnum.c"
50#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020051
Arnaldo Carvalho de Melo1c1a3a42016-07-12 12:19:09 -030052#define main main_test_libelf_gelf_getnote
53# include "test-libelf-gelf_getnote.c"
54#undef main
55
Arnaldo Carvalho de Melo2492c462016-07-04 19:35:47 -030056#define main main_test_libelf_getshdrstrndx
57# include "test-libelf-getshdrstrndx.c"
58#undef main
59
Ingo Molnar3ca576a2013-10-02 16:21:37 +020060#define main main_test_libunwind
61# include "test-libunwind.c"
62#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020063
Ingo Molnar3ca576a2013-10-02 16:21:37 +020064#define main main_test_libaudit
65# include "test-libaudit.c"
66#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020067
Ingo Molnar3ca576a2013-10-02 16:21:37 +020068#define main main_test_libslang
69# include "test-libslang.c"
70#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020071
Ingo Molnar3ca576a2013-10-02 16:21:37 +020072#define main main_test_gtk2
73# include "test-gtk2.c"
74#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020075
Ingo Molnar3ca576a2013-10-02 16:21:37 +020076#define main main_test_gtk2_infobar
77# include "test-gtk2-infobar.c"
78#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020079
Ingo Molnar3ca576a2013-10-02 16:21:37 +020080#define main main_test_libbfd
81# include "test-libbfd.c"
82#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020083
Ingo Molnar3ca576a2013-10-02 16:21:37 +020084#define main main_test_backtrace
85# include "test-backtrace.c"
86#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020087
Ingo Molnar3ca576a2013-10-02 16:21:37 +020088#define main main_test_libnuma
89# include "test-libnuma.c"
90#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020091
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -030092#define main main_test_numa_num_possible_cpus
93# include "test-numa_num_possible_cpus.c"
94#undef main
95
David Ahern87419c92013-10-29 10:43:16 -060096#define main main_test_timerfd
97# include "test-timerfd.c"
98#undef main
99
Jiri Olsabc323582013-11-28 12:33:01 +0100100#define main main_test_stackprotector_all
101# include "test-stackprotector-all.c"
102#undef main
103
Jiri Olsa45757892014-02-19 16:52:56 +0100104#define main main_test_libdw_dwarf_unwind
105# include "test-libdw-dwarf-unwind.c"
106#undef main
107
Adrian Hunterf6d31362014-07-14 13:02:53 +0300108#define main main_test_sync_compare_and_swap
109# include "test-sync-compare-and-swap.c"
110#undef main
111
Namhyung Kime92ce122014-10-31 16:51:38 +0900112#define main main_test_zlib
113# include "test-zlib.c"
114#undef main
115
Vineet Gupta459a3df2015-01-13 19:13:24 +0530116#define main main_test_pthread_attr_setaffinity_np
Jiri Olsac59a1422015-03-11 09:02:00 +0100117# include "test-pthread-attr-setaffinity-np.c"
Vineet Gupta459a3df2015-01-13 19:13:24 +0530118#undef main
119
Jiri Olsa97e7a512015-03-11 09:00:41 +0100120# if 0
121/*
122 * Disable libbabeltrace check for test-all, because the requested
123 * library version is not released yet in most distributions. Will
124 * reenable later.
125 */
126
Jiri Olsa53d0a572015-02-20 23:16:58 +0100127#define main main_test_libbabeltrace
128# include "test-libbabeltrace.c"
129#undef main
Jiri Olsa97e7a512015-03-11 09:00:41 +0100130#endif
Jiri Olsa53d0a572015-02-20 23:16:58 +0100131
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100132#define main main_test_lzma
133# include "test-lzma.c"
134#undef main
135
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300136#define main main_test_get_cpuid
137# include "test-get_cpuid.c"
138#undef main
139
Wang Nan0c4d40d2016-01-11 13:48:01 +0000140#define main main_test_bpf
141# include "test-bpf.c"
142#undef main
143
Stephane Eranian8ee46462015-11-30 10:02:21 +0100144#define main main_test_libcrypto
145# include "test-libcrypto.c"
146#undef main
147
Masami Hiramatsue26e63b2016-07-12 19:05:56 +0900148#define main main_test_sdt
149# include "test-sdt.c"
150#undef main
151
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200152int main(int argc, char *argv[])
153{
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200154 main_test_libpython();
155 main_test_libpython_version();
156 main_test_libperl();
157 main_test_hello();
158 main_test_libelf();
159 main_test_libelf_mmap();
160 main_test_glibc();
161 main_test_dwarf();
Arnaldo Carvalho de Melo492473452016-04-05 11:33:41 -0300162 main_test_dwarf_getlocations();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200163 main_test_libelf_getphdrnum();
Arnaldo Carvalho de Melo1c1a3a42016-07-12 12:19:09 -0300164 main_test_libelf_gelf_getnote();
Arnaldo Carvalho de Melo2492c462016-07-04 19:35:47 -0300165 main_test_libelf_getshdrstrndx();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200166 main_test_libunwind();
167 main_test_libaudit();
168 main_test_libslang();
169 main_test_gtk2(argc, argv);
170 main_test_gtk2_infobar(argc, argv);
171 main_test_libbfd();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200172 main_test_backtrace();
173 main_test_libnuma();
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -0300174 main_test_numa_num_possible_cpus();
David Ahern87419c92013-10-29 10:43:16 -0600175 main_test_timerfd();
Jiri Olsabc323582013-11-28 12:33:01 +0100176 main_test_stackprotector_all();
Jiri Olsa45757892014-02-19 16:52:56 +0100177 main_test_libdw_dwarf_unwind();
Adrian Hunterf6d31362014-07-14 13:02:53 +0300178 main_test_sync_compare_and_swap(argc, argv);
Namhyung Kime92ce122014-10-31 16:51:38 +0900179 main_test_zlib();
Vineet Gupta459a3df2015-01-13 19:13:24 +0530180 main_test_pthread_attr_setaffinity_np();
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100181 main_test_lzma();
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300182 main_test_get_cpuid();
Wang Nan0c4d40d2016-01-11 13:48:01 +0000183 main_test_bpf();
Stephane Eranian8ee46462015-11-30 10:02:21 +0100184 main_test_libcrypto();
Masami Hiramatsue26e63b2016-07-12 19:05:56 +0900185 main_test_sdt();
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200186
187 return 0;
188}