|
| 1 | +all_tests = [['232c93d07b74-test', 'c', thread_dep], |
| 2 | + ['35fa71a030ca-test', 'c', thread_dep], |
| 3 | + ['500f9fbadef8-test', 'c', []], |
| 4 | + ['7ad0e4b2f83c-test', 'c', []], |
| 5 | + ['8a9973408177-test', 'c', []], |
| 6 | + ['917257daa0fe-test', 'c', []], |
| 7 | + ['a0908ae19763-test', 'c', []], |
| 8 | + ['a4c0b3decb33-test', 'c', []], |
| 9 | + ['accept', 'c', []], |
| 10 | + ['accept-link', 'c', thread_dep], |
| 11 | + ['accept-reuse', 'c', []], |
| 12 | + ['accept-test', 'c', []], |
| 13 | + ['across-fork', 'c', thread_dep], |
| 14 | + ['splice', 'c', []], |
| 15 | + ['b19062a56726-test', 'c', []], |
| 16 | + ['b5837bd5311d-test', 'c', []], |
| 17 | + ['ce593a6c480a-test', 'c', thread_dep], |
| 18 | + ['close-opath', 'c', []], |
| 19 | + ['connect', 'c', []], |
| 20 | + ['cq-full', 'c', []], |
| 21 | + ['cq-overflow', 'c', []], |
| 22 | + ['cq-overflow-peek', 'c', []], |
| 23 | + ['cq-peek-batch', 'c', []], |
| 24 | + ['cq-ready', 'c', []], |
| 25 | + ['cq-size', 'c', []], |
| 26 | + ['d4ae271dfaae-test', 'c', []], |
| 27 | + ['d77a67ed5f27-test', 'c', []], |
| 28 | + ['defer', 'c', []], |
| 29 | + ['double-poll-crash', 'c', []], |
| 30 | + ['eeed8b54e0df-test', 'c', []], |
| 31 | + ['eventfd', 'c', []], |
| 32 | + ['eventfd-disable', 'c', []], |
| 33 | + ['eventfd-ring', 'c', []], |
| 34 | + ['fadvise', 'c', []], |
| 35 | + ['fallocate', 'c', []], |
| 36 | + ['fc2a85cb02ef-test', 'c', []], |
| 37 | + ['file-register', 'c', []], |
| 38 | + ['file-update', 'c', []], |
| 39 | + ['files-exit-hang-poll', 'c', []], |
| 40 | + ['files-exit-hang-timeout', 'c', []], |
| 41 | + ['fixed-link', 'c', []], |
| 42 | + ['fsync', 'c', []], |
| 43 | + ['io-cancel', 'c', []], |
| 44 | + ['io_uring_enter', 'c', []], |
| 45 | + ['io_uring_register', 'c', []], |
| 46 | + ['io_uring_setup', 'c', []], |
| 47 | + ['iopoll', 'c', []], |
| 48 | + ['lfs-openat', 'c', []], |
| 49 | + ['lfs-openat-write', 'c', []], |
| 50 | + ['link', 'c', []], |
| 51 | + ['link-timeout', 'c', []], |
| 52 | + ['link_drain', 'c', []], |
| 53 | + ['madvise', 'c', []], |
| 54 | + ['nop', 'c', []], |
| 55 | + ['nop-all-sizes', 'c', []], |
| 56 | + ['open-close', 'c', []], |
| 57 | + ['openat2', 'c', []], |
| 58 | + ['personality', 'c', []], |
| 59 | + ['pipe-eof', 'c', thread_dep], |
| 60 | + ['pipe-reuse', 'c', []], |
| 61 | + ['poll', 'c', []], |
| 62 | + ['poll-cancel', 'c', []], |
| 63 | + ['poll-cancel-ton', 'c', []], |
| 64 | + ['poll-link', 'c', thread_dep], |
| 65 | + ['poll-many', 'c', []], |
| 66 | + ['poll-ring', 'c', []], |
| 67 | + ['poll-v-poll', 'c', thread_dep], |
| 68 | + ['probe', 'c', []], |
| 69 | + ['read-write', 'c', []], |
| 70 | + ['register-restrictions', 'c', []], |
| 71 | + ['rename', 'c', []], |
| 72 | + ['ring-leak', 'c', []], |
| 73 | + ['ring-leak2', 'c', thread_dep], |
| 74 | + ['self', 'c', []], |
| 75 | + ['send_recv', 'c', thread_dep], |
| 76 | + ['send_recvmsg', 'c', thread_dep], |
| 77 | + ['shared-wq', 'c', []], |
| 78 | + ['short-read', 'c', []], |
| 79 | + ['shutdown', 'c', []], |
| 80 | + ['sigfd-deadlock', 'c', []], |
| 81 | + ['socket-rw', 'c', []], |
| 82 | + ['socket-rw-eagain', 'c', []], |
| 83 | + ['sq-full', 'c', []], |
| 84 | + ['sq-poll-dup', 'c', []], |
| 85 | + ['sq-poll-kthread', 'c', []], |
| 86 | + ['sq-poll-share', 'c', []], |
| 87 | + ['sqpoll-sleep', 'c', []], |
| 88 | + ['sq-space_left', 'c', []], |
| 89 | + ['stdout', 'c', []], |
| 90 | + ['submit-reuse', 'c', thread_dep], |
| 91 | + ['teardowns', 'c', []], |
| 92 | + ['thread-exit', 'c', thread_dep], |
| 93 | + ['timeout', 'c', []], |
| 94 | + ['timeout-new', 'c', thread_dep], |
| 95 | + ['timeout-overflow', 'c', []], |
| 96 | + ['unlink', 'c', []], |
| 97 | + ['wakeup-hang', 'c', thread_dep]] |
| 98 | + |
| 99 | +if has_statx |
| 100 | + all_tests += [['statx', 'c', []]] |
| 101 | +endif |
| 102 | + |
| 103 | +if has_statx |
| 104 | + all_tests += [['sq-full-cpp', 'cc', []]] |
| 105 | +endif |
| 106 | + |
| 107 | +runtests_sh = find_program('runtests.sh') |
| 108 | +runtests_loop_sh = find_program('runtests-loop.sh') |
| 109 | + |
| 110 | +foreach t : all_tests |
| 111 | + executable(t[0], t[0] + '.' + t[1], |
| 112 | + include_directories : inc, |
| 113 | + link_with : liburing_static, |
| 114 | + dependencies : t[2], |
| 115 | + install : true, |
| 116 | + install_dir : get_option('datadir') / 'liburing-test') |
| 117 | + |
| 118 | + test(t[0], runtests_sh, args : t[0], workdir : meson.current_build_dir(), suite : 'once') |
| 119 | + test(t[0] + '_loop', runtests_loop_sh, args : t[0], workdir : meson.current_build_dir(), suite : 'loop') |
| 120 | +endforeach |
| 121 | + |
| 122 | +configure_file(input : 'runtests.sh', output: 'runtests.sh', copy : true) |
| 123 | +configure_file(input : 'runtests-loop.sh', output: 'runtests-loop.sh', copy : true) |
| 124 | +configure_file(input : 'config', output: 'config.local', copy : true) |
| 125 | + |
| 126 | +install_data('runtests.sh', 'runtests-loop.sh', |
| 127 | + install_dir : get_option('datadir') / 'liburing-test', |
| 128 | + install_mode : 'rwxr-xr-x') |
0 commit comments