Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * test-all.c: Try to build all the main testcases at once.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * A well-configured system will have all the prereqs installed, so we can speed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * up auto-detection on such systems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * Quirk: Python and Perl headers cannot be in arbitrary places, so keep
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * these 3 testcases at the top:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #define main main_test_libpython
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) # include "test-libpython.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #define main main_test_libperl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) # include "test-libperl.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #define main main_test_hello
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) # include "test-hello.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #define main main_test_libelf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) # include "test-libelf.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #define main main_test_get_current_dir_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) # include "test-get_current_dir_name.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) #define main main_test_gettid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) # include "test-gettid.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #define main main_test_glibc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) # include "test-glibc.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #define main main_test_dwarf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) # include "test-dwarf.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #define main main_test_dwarf_getlocations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) # include "test-dwarf_getlocations.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) #define main main_test_eventfd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) # include "test-eventfd.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) #define main main_test_libelf_getphdrnum
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) # include "test-libelf-getphdrnum.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) #define main main_test_libelf_gelf_getnote
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) # include "test-libelf-gelf_getnote.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) #define main main_test_libelf_getshdrstrndx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) # include "test-libelf-getshdrstrndx.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) #define main main_test_libunwind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) # include "test-libunwind.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) #define main main_test_libslang
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) # include "test-libslang.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) #define main main_test_libbfd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) # include "test-libbfd.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) #define main main_test_libbfd_buildid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) # include "test-libbfd-buildid.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) #define main main_test_backtrace
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) # include "test-backtrace.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) #define main main_test_libnuma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) # include "test-libnuma.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) #define main main_test_numa_num_possible_cpus
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) # include "test-numa_num_possible_cpus.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) #define main main_test_timerfd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) # include "test-timerfd.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) #define main main_test_stackprotector_all
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) # include "test-stackprotector-all.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define main main_test_libdw_dwarf_unwind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) # include "test-libdw-dwarf-unwind.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define main main_test_sync_compare_and_swap
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) # include "test-sync-compare-and-swap.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define main main_test_zlib
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) # include "test-zlib.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define main main_test_pthread_attr_setaffinity_np
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) # include "test-pthread-attr-setaffinity-np.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define main main_test_pthread_barrier
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) # include "test-pthread-barrier.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define main main_test_sched_getcpu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) # include "test-sched_getcpu.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) # if 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127)  * Disable libbabeltrace check for test-all, because the requested
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)  * library version is not released yet in most distributions. Will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)  * reenable later.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define main main_test_libbabeltrace
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) # include "test-libbabeltrace.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define main main_test_lzma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) # include "test-lzma.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #define main main_test_get_cpuid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) # include "test-get_cpuid.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define main main_test_bpf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) # include "test-bpf.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) #define main main_test_libcrypto
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) # include "test-libcrypto.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) #define main main_test_sdt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) # include "test-sdt.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) #define main main_test_setns
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) # include "test-setns.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) #define main main_test_libaio
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) # include "test-libaio.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define main main_test_reallocarray
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) # include "test-reallocarray.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) #define main main_test_disassembler_four_args
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) # include "test-disassembler-four-args.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #define main main_test_libzstd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) # include "test-libzstd.c"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #undef main
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) int main(int argc, char *argv[])
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	main_test_libpython();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	main_test_libperl();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	main_test_hello();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	main_test_libelf();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	main_test_get_current_dir_name();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	main_test_gettid();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	main_test_glibc();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	main_test_dwarf();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	main_test_dwarf_getlocations();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	main_test_eventfd();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	main_test_libelf_getphdrnum();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	main_test_libelf_gelf_getnote();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	main_test_libelf_getshdrstrndx();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	main_test_libunwind();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	main_test_libslang();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	main_test_libbfd();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	main_test_libbfd_buildid();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	main_test_backtrace();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	main_test_libnuma();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	main_test_numa_num_possible_cpus();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	main_test_timerfd();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	main_test_stackprotector_all();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	main_test_libdw_dwarf_unwind();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	main_test_sync_compare_and_swap(argc, argv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	main_test_zlib();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	main_test_pthread_attr_setaffinity_np();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	main_test_pthread_barrier();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	main_test_lzma();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	main_test_get_cpuid();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	main_test_bpf();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	main_test_libcrypto();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	main_test_sched_getcpu();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	main_test_sdt();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	main_test_setns();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	main_test_libaio();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	main_test_reallocarray();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	main_test_disassembler_four_args();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	main_test_libzstd();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) }