test-all.c 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
/*
 * test-all.c: Try to build all the main testcases at once.
 *
 * A well-configured system will have all the prereqs installed, so we can speed
 * up auto-detection on such systems.
 */

/*
 * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
 * these 3 testcases at the top:
 */
#define main main_test_libpython
# include "test-libpython.c"
#undef main

#define main main_test_libpython_version
# include "test-libpython-version.c"
#undef main

#define main main_test_libperl
# include "test-libperl.c"
#undef main

#define main main_test_hello
# include "test-hello.c"
#undef main

#define main main_test_libelf
# include "test-libelf.c"
#undef main

#define main main_test_libelf_mmap
# include "test-libelf-mmap.c"
#undef main

#define main main_test_glibc
# include "test-glibc.c"
#undef main

#define main main_test_dwarf
# include "test-dwarf.c"
#undef main

#define main main_test_libelf_getphdrnum
# include "test-libelf-getphdrnum.c"
#undef main

#define main main_test_libunwind
# include "test-libunwind.c"
#undef main

#define main main_test_libaudit
# include "test-libaudit.c"
#undef main

#define main main_test_libslang
# include "test-libslang.c"
#undef main

#define main main_test_gtk2
# include "test-gtk2.c"
#undef main

#define main main_test_gtk2_infobar
# include "test-gtk2-infobar.c"
#undef main

#define main main_test_libbfd
# include "test-libbfd.c"
#undef main

#define main main_test_backtrace
# include "test-backtrace.c"
#undef main

#define main main_test_libnuma
# include "test-libnuma.c"
#undef main
79

80 81 82 83
#define main main_test_timerfd
# include "test-timerfd.c"
#undef main

84 85 86 87
#define main main_test_stackprotector_all
# include "test-stackprotector-all.c"
#undef main

88 89 90 91
#define main main_test_libdw_dwarf_unwind
# include "test-libdw-dwarf-unwind.c"
#undef main

92 93 94 95
#define main main_test_sync_compare_and_swap
# include "test-sync-compare-and-swap.c"
#undef main

96 97 98 99
#define main main_test_zlib
# include "test-zlib.c"
#undef main

100
#define main main_test_pthread_attr_setaffinity_np
101
# include "test-pthread-attr-setaffinity-np.c"
102 103
#undef main

104 105 106 107 108 109 110
# if 0
/*
 * Disable libbabeltrace check for test-all, because the requested
 * library version is not released yet in most distributions. Will
 * reenable later.
 */

111 112 113
#define main main_test_libbabeltrace
# include "test-libbabeltrace.c"
#undef main
114
#endif
115

116 117
int main(int argc, char *argv[])
{
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
	main_test_libpython();
	main_test_libpython_version();
	main_test_libperl();
	main_test_hello();
	main_test_libelf();
	main_test_libelf_mmap();
	main_test_glibc();
	main_test_dwarf();
	main_test_libelf_getphdrnum();
	main_test_libunwind();
	main_test_libaudit();
	main_test_libslang();
	main_test_gtk2(argc, argv);
	main_test_gtk2_infobar(argc, argv);
	main_test_libbfd();
	main_test_backtrace();
	main_test_libnuma();
135
	main_test_timerfd();
136
	main_test_stackprotector_all();
137
	main_test_libdw_dwarf_unwind();
138
	main_test_sync_compare_and_swap(argc, argv);
139
	main_test_zlib();
140
	main_test_pthread_attr_setaffinity_np();
141 142 143

	return 0;
}