test-all.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. */
  7. /*
  8. * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
  9. * these 3 testcases at the top:
  10. */
  11. #define main main_test_libpython
  12. # include "test-libpython.c"
  13. #undef main
  14. #define main main_test_libpython_version
  15. # include "test-libpython-version.c"
  16. #undef main
  17. #define main main_test_libperl
  18. # include "test-libperl.c"
  19. #undef main
  20. #define main main_test_hello
  21. # include "test-hello.c"
  22. #undef main
  23. #define main main_test_libelf
  24. # include "test-libelf.c"
  25. #undef main
  26. #define main main_test_libelf_mmap
  27. # include "test-libelf-mmap.c"
  28. #undef main
  29. #define main main_test_glibc
  30. # include "test-glibc.c"
  31. #undef main
  32. #define main main_test_dwarf
  33. # include "test-dwarf.c"
  34. #undef main
  35. #define main main_test_libelf_getphdrnum
  36. # include "test-libelf-getphdrnum.c"
  37. #undef main
  38. #define main main_test_libunwind
  39. # include "test-libunwind.c"
  40. #undef main
  41. #define main main_test_libaudit
  42. # include "test-libaudit.c"
  43. #undef main
  44. #define main main_test_libslang
  45. # include "test-libslang.c"
  46. #undef main
  47. #define main main_test_gtk2
  48. # include "test-gtk2.c"
  49. #undef main
  50. #define main main_test_gtk2_infobar
  51. # include "test-gtk2-infobar.c"
  52. #undef main
  53. #define main main_test_libbfd
  54. # include "test-libbfd.c"
  55. #undef main
  56. #define main main_test_backtrace
  57. # include "test-backtrace.c"
  58. #undef main
  59. #define main main_test_libnuma
  60. # include "test-libnuma.c"
  61. #undef main
  62. #define main main_test_numa_num_possible_cpus
  63. # include "test-numa_num_possible_cpus.c"
  64. #undef main
  65. #define main main_test_timerfd
  66. # include "test-timerfd.c"
  67. #undef main
  68. #define main main_test_stackprotector_all
  69. # include "test-stackprotector-all.c"
  70. #undef main
  71. #define main main_test_libdw_dwarf_unwind
  72. # include "test-libdw-dwarf-unwind.c"
  73. #undef main
  74. #define main main_test_sync_compare_and_swap
  75. # include "test-sync-compare-and-swap.c"
  76. #undef main
  77. #define main main_test_zlib
  78. # include "test-zlib.c"
  79. #undef main
  80. #define main main_test_pthread_attr_setaffinity_np
  81. # include "test-pthread-attr-setaffinity-np.c"
  82. #undef main
  83. # if 0
  84. /*
  85. * Disable libbabeltrace check for test-all, because the requested
  86. * library version is not released yet in most distributions. Will
  87. * reenable later.
  88. */
  89. #define main main_test_libbabeltrace
  90. # include "test-libbabeltrace.c"
  91. #undef main
  92. #endif
  93. #define main main_test_lzma
  94. # include "test-lzma.c"
  95. #undef main
  96. #define main main_test_get_cpuid
  97. # include "test-get_cpuid.c"
  98. #undef main
  99. int main(int argc, char *argv[])
  100. {
  101. main_test_libpython();
  102. main_test_libpython_version();
  103. main_test_libperl();
  104. main_test_hello();
  105. main_test_libelf();
  106. main_test_libelf_mmap();
  107. main_test_glibc();
  108. main_test_dwarf();
  109. main_test_libelf_getphdrnum();
  110. main_test_libunwind();
  111. main_test_libaudit();
  112. main_test_libslang();
  113. main_test_gtk2(argc, argv);
  114. main_test_gtk2_infobar(argc, argv);
  115. main_test_libbfd();
  116. main_test_backtrace();
  117. main_test_libnuma();
  118. main_test_numa_num_possible_cpus();
  119. main_test_timerfd();
  120. main_test_stackprotector_all();
  121. main_test_libdw_dwarf_unwind();
  122. main_test_sync_compare_and_swap(argc, argv);
  123. main_test_zlib();
  124. main_test_pthread_attr_setaffinity_np();
  125. main_test_lzma();
  126. main_test_get_cpuid();
  127. return 0;
  128. }