blob: 33cf6f20bd4ec6812ac6b53cfe1b301053d8c940 [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
Ingo Molnar3ca576a2013-10-02 16:21:37 +020044#define main main_test_libelf_getphdrnum
45# include "test-libelf-getphdrnum.c"
46#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020047
Ingo Molnar3ca576a2013-10-02 16:21:37 +020048#define main main_test_libunwind
49# include "test-libunwind.c"
50#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020051
Ingo Molnar3ca576a2013-10-02 16:21:37 +020052#define main main_test_libaudit
53# include "test-libaudit.c"
54#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020055
Ingo Molnar3ca576a2013-10-02 16:21:37 +020056#define main main_test_libslang
57# include "test-libslang.c"
58#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020059
Ingo Molnar3ca576a2013-10-02 16:21:37 +020060#define main main_test_gtk2
61# include "test-gtk2.c"
62#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020063
Ingo Molnar3ca576a2013-10-02 16:21:37 +020064#define main main_test_gtk2_infobar
65# include "test-gtk2-infobar.c"
66#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020067
Ingo Molnar3ca576a2013-10-02 16:21:37 +020068#define main main_test_libbfd
69# include "test-libbfd.c"
70#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020071
Ingo Molnar3ca576a2013-10-02 16:21:37 +020072#define main main_test_backtrace
73# include "test-backtrace.c"
74#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020075
Ingo Molnar3ca576a2013-10-02 16:21:37 +020076#define main main_test_libnuma
77# include "test-libnuma.c"
78#undef main
Ingo Molnarbaa9c302013-10-01 14:14:31 +020079
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -030080#define main main_test_numa_num_possible_cpus
81# include "test-numa_num_possible_cpus.c"
82#undef main
83
David Ahern87419c92013-10-29 10:43:16 -060084#define main main_test_timerfd
85# include "test-timerfd.c"
86#undef main
87
Jiri Olsabc323582013-11-28 12:33:01 +010088#define main main_test_stackprotector_all
89# include "test-stackprotector-all.c"
90#undef main
91
Jiri Olsa45757892014-02-19 16:52:56 +010092#define main main_test_libdw_dwarf_unwind
93# include "test-libdw-dwarf-unwind.c"
94#undef main
95
Adrian Hunterf6d31362014-07-14 13:02:53 +030096#define main main_test_sync_compare_and_swap
97# include "test-sync-compare-and-swap.c"
98#undef main
99
Namhyung Kime92ce122014-10-31 16:51:38 +0900100#define main main_test_zlib
101# include "test-zlib.c"
102#undef main
103
Vineet Gupta459a3df2015-01-13 19:13:24 +0530104#define main main_test_pthread_attr_setaffinity_np
Jiri Olsac59a1422015-03-11 09:02:00 +0100105# include "test-pthread-attr-setaffinity-np.c"
Vineet Gupta459a3df2015-01-13 19:13:24 +0530106#undef main
107
Jiri Olsa97e7a512015-03-11 09:00:41 +0100108# if 0
109/*
110 * Disable libbabeltrace check for test-all, because the requested
111 * library version is not released yet in most distributions. Will
112 * reenable later.
113 */
114
Jiri Olsa53d0a572015-02-20 23:16:58 +0100115#define main main_test_libbabeltrace
116# include "test-libbabeltrace.c"
117#undef main
Jiri Olsa97e7a512015-03-11 09:00:41 +0100118#endif
Jiri Olsa53d0a572015-02-20 23:16:58 +0100119
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100120#define main main_test_lzma
121# include "test-lzma.c"
122#undef main
123
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300124#define main main_test_get_cpuid
125# include "test-get_cpuid.c"
126#undef main
127
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200128int main(int argc, char *argv[])
129{
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200130 main_test_libpython();
131 main_test_libpython_version();
132 main_test_libperl();
133 main_test_hello();
134 main_test_libelf();
135 main_test_libelf_mmap();
136 main_test_glibc();
137 main_test_dwarf();
138 main_test_libelf_getphdrnum();
139 main_test_libunwind();
140 main_test_libaudit();
141 main_test_libslang();
142 main_test_gtk2(argc, argv);
143 main_test_gtk2_infobar(argc, argv);
144 main_test_libbfd();
Ingo Molnar3ca576a2013-10-02 16:21:37 +0200145 main_test_backtrace();
146 main_test_libnuma();
Arnaldo Carvalho de Melof8ac8602015-09-17 12:20:28 -0300147 main_test_numa_num_possible_cpus();
David Ahern87419c92013-10-29 10:43:16 -0600148 main_test_timerfd();
Jiri Olsabc323582013-11-28 12:33:01 +0100149 main_test_stackprotector_all();
Jiri Olsa45757892014-02-19 16:52:56 +0100150 main_test_libdw_dwarf_unwind();
Adrian Hunterf6d31362014-07-14 13:02:53 +0300151 main_test_sync_compare_and_swap(argc, argv);
Namhyung Kime92ce122014-10-31 16:51:38 +0900152 main_test_zlib();
Vineet Gupta459a3df2015-01-13 19:13:24 +0530153 main_test_pthread_attr_setaffinity_np();
Jiri Olsa6c6f0f62015-03-04 11:35:47 +0100154 main_test_lzma();
Arnaldo Carvalho de Melob0063db2015-09-17 12:54:30 -0300155 main_test_get_cpuid();
Ingo Molnarbaa9c302013-10-01 14:14:31 +0200156
157 return 0;
158}