Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 1 | /* |
| 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 Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 7 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 8 | /* |
| 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 Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 15 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 16 | #define main main_test_libpython_version |
| 17 | # include "test-libpython-version.c" |
| 18 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 19 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 20 | #define main main_test_libperl |
| 21 | # include "test-libperl.c" |
| 22 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 23 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 24 | #define main main_test_hello |
| 25 | # include "test-hello.c" |
| 26 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 27 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 28 | #define main main_test_libelf |
| 29 | # include "test-libelf.c" |
| 30 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 31 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 32 | #define main main_test_libelf_mmap |
| 33 | # include "test-libelf-mmap.c" |
| 34 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 35 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 36 | #define main main_test_glibc |
| 37 | # include "test-glibc.c" |
| 38 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 39 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 40 | #define main main_test_dwarf |
| 41 | # include "test-dwarf.c" |
| 42 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 43 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 44 | #define main main_test_libelf_getphdrnum |
| 45 | # include "test-libelf-getphdrnum.c" |
| 46 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 47 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 48 | #define main main_test_libunwind |
| 49 | # include "test-libunwind.c" |
| 50 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 51 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 52 | #define main main_test_libaudit |
| 53 | # include "test-libaudit.c" |
| 54 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 55 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 56 | #define main main_test_libslang |
| 57 | # include "test-libslang.c" |
| 58 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 59 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 60 | #define main main_test_gtk2 |
| 61 | # include "test-gtk2.c" |
| 62 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 63 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 64 | #define main main_test_gtk2_infobar |
| 65 | # include "test-gtk2-infobar.c" |
| 66 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 67 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 68 | #define main main_test_libbfd |
| 69 | # include "test-libbfd.c" |
| 70 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 71 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 72 | #define main main_test_backtrace |
| 73 | # include "test-backtrace.c" |
| 74 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 75 | |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 76 | #define main main_test_libnuma |
| 77 | # include "test-libnuma.c" |
| 78 | #undef main |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 79 | |
David Ahern | 87419c9 | 2013-10-29 10:43:16 -0600 | [diff] [blame] | 80 | #define main main_test_timerfd |
| 81 | # include "test-timerfd.c" |
| 82 | #undef main |
| 83 | |
Jiri Olsa | bc32358 | 2013-11-28 12:33:01 +0100 | [diff] [blame] | 84 | #define main main_test_stackprotector_all |
| 85 | # include "test-stackprotector-all.c" |
| 86 | #undef main |
| 87 | |
Jiri Olsa | 4575789 | 2014-02-19 16:52:56 +0100 | [diff] [blame] | 88 | #define main main_test_libdw_dwarf_unwind |
| 89 | # include "test-libdw-dwarf-unwind.c" |
| 90 | #undef main |
| 91 | |
Adrian Hunter | f6d3136 | 2014-07-14 13:02:53 +0300 | [diff] [blame] | 92 | #define main main_test_sync_compare_and_swap |
| 93 | # include "test-sync-compare-and-swap.c" |
| 94 | #undef main |
| 95 | |
Namhyung Kim | e92ce12 | 2014-10-31 16:51:38 +0900 | [diff] [blame] | 96 | #define main main_test_zlib |
| 97 | # include "test-zlib.c" |
| 98 | #undef main |
| 99 | |
Vineet Gupta | 459a3df | 2015-01-13 19:13:24 +0530 | [diff] [blame] | 100 | #define main main_test_pthread_attr_setaffinity_np |
| 101 | # include "test-pthread_attr_setaffinity_np.c" |
| 102 | #undef main |
| 103 | |
Jiri Olsa | 97e7a51 | 2015-03-11 09:00:41 +0100 | [diff] [blame^] | 104 | # if 0 |
| 105 | /* |
| 106 | * Disable libbabeltrace check for test-all, because the requested |
| 107 | * library version is not released yet in most distributions. Will |
| 108 | * reenable later. |
| 109 | */ |
| 110 | |
Jiri Olsa | 53d0a57 | 2015-02-20 23:16:58 +0100 | [diff] [blame] | 111 | #define main main_test_libbabeltrace |
| 112 | # include "test-libbabeltrace.c" |
| 113 | #undef main |
Jiri Olsa | 97e7a51 | 2015-03-11 09:00:41 +0100 | [diff] [blame^] | 114 | #endif |
Jiri Olsa | 53d0a57 | 2015-02-20 23:16:58 +0100 | [diff] [blame] | 115 | |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 116 | int main(int argc, char *argv[]) |
| 117 | { |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 118 | main_test_libpython(); |
| 119 | main_test_libpython_version(); |
| 120 | main_test_libperl(); |
| 121 | main_test_hello(); |
| 122 | main_test_libelf(); |
| 123 | main_test_libelf_mmap(); |
| 124 | main_test_glibc(); |
| 125 | main_test_dwarf(); |
| 126 | main_test_libelf_getphdrnum(); |
| 127 | main_test_libunwind(); |
| 128 | main_test_libaudit(); |
| 129 | main_test_libslang(); |
| 130 | main_test_gtk2(argc, argv); |
| 131 | main_test_gtk2_infobar(argc, argv); |
| 132 | main_test_libbfd(); |
Ingo Molnar | 3ca576a | 2013-10-02 16:21:37 +0200 | [diff] [blame] | 133 | main_test_backtrace(); |
| 134 | main_test_libnuma(); |
David Ahern | 87419c9 | 2013-10-29 10:43:16 -0600 | [diff] [blame] | 135 | main_test_timerfd(); |
Jiri Olsa | bc32358 | 2013-11-28 12:33:01 +0100 | [diff] [blame] | 136 | main_test_stackprotector_all(); |
Jiri Olsa | 4575789 | 2014-02-19 16:52:56 +0100 | [diff] [blame] | 137 | main_test_libdw_dwarf_unwind(); |
Adrian Hunter | f6d3136 | 2014-07-14 13:02:53 +0300 | [diff] [blame] | 138 | main_test_sync_compare_and_swap(argc, argv); |
Namhyung Kim | e92ce12 | 2014-10-31 16:51:38 +0900 | [diff] [blame] | 139 | main_test_zlib(); |
Vineet Gupta | 459a3df | 2015-01-13 19:13:24 +0530 | [diff] [blame] | 140 | main_test_pthread_attr_setaffinity_np(); |
Ingo Molnar | baa9c30 | 2013-10-01 14:14:31 +0200 | [diff] [blame] | 141 | |
| 142 | return 0; |
| 143 | } |