| 1 |
mod test_signal; |
| 2 |
|
| 3 |
// NOTE: DragonFly lacks a kernel-level implementation of Posix AIO as of |
| 4 |
// this writing. There is an user-level implementation, but whether aio |
| 5 |
// works or not heavily depends on which pthread implementation is chosen |
| 6 |
// by the user at link time. For this reason we do not want to run aio test |
| 7 |
// cases on DragonFly. |
| 8 |
#[cfg(any( |
| 9 |
target_os = "freebsd", |
| 10 |
apple_targets, |
| 11 |
all( |
| 12 |
target_os = "linux", |
| 13 |
not(any(target_env = "uclibc", target_env = "ohos")) |
| 14 |
), |
| 15 |
target_os = "netbsd" |
| 16 |
))] |
| 17 |
mod test_aio; |
| 18 |
#[cfg(not(any( |
| 19 |
target_os = "redox", |
| 20 |
target_os = "fuchsia", |
| 21 |
target_os = "haiku", |
| 22 |
target_os = "hurd", |
| 23 |
target_os = "cygwin" |
| 24 |
)))] |
| 25 |
mod test_ioctl; |
| 26 |
#[cfg(not(target_os = "redox"))] |
| 27 |
mod test_mman; |
| 28 |
#[cfg(not(target_os = "redox"))] |
| 29 |
mod test_select; |
| 30 |
#[cfg(target_os = "linux")] |
| 31 |
mod test_signalfd; |
| 32 |
#[cfg(not(any(target_os = "redox", target_os = "haiku")))] |
| 33 |
mod test_socket; |
| 34 |
#[cfg(not(any(target_os = "redox")))] |
| 35 |
mod test_sockopt; |
| 36 |
mod test_stat; |
| 37 |
#[cfg(linux_android)] |
| 38 |
mod test_sysinfo; |
| 39 |
#[cfg(not(any( |
| 40 |
target_os = "redox", |
| 41 |
target_os = "fuchsia", |
| 42 |
target_os = "haiku" |
| 43 |
)))] |
| 44 |
mod test_termios; |
| 45 |
mod test_uio; |
| 46 |
mod test_wait; |
| 47 |
|
| 48 |
#[cfg(linux_android)] |
| 49 |
mod test_epoll; |
| 50 |
#[cfg(target_os = "linux")] |
| 51 |
mod test_fanotify; |
| 52 |
#[cfg(target_os = "linux")] |
| 53 |
mod test_inotify; |
| 54 |
mod test_pthread; |
| 55 |
|
| 56 |
#[cfg(any(linux_android, freebsdlike, netbsdlike, apple_targets))] |
| 57 |
mod test_ptrace; |
| 58 |
#[cfg(linux_android)] |
| 59 |
mod test_timerfd; |
| 60 |
|
| 61 |
#[cfg(all( |
| 62 |
any( |
| 63 |
target_os = "freebsd", |
| 64 |
solarish, |
| 65 |
target_os = "linux", |
| 66 |
target_os = "netbsd" |
| 67 |
), |
| 68 |
feature = "time", |
| 69 |
feature = "signal" |
| 70 |
))] |
| 71 |
mod test_timer; |
| 72 |
|
| 73 |
#[cfg(bsd)] |
| 74 |
mod test_event; |
| 75 |
mod test_statvfs; |
| 76 |
mod test_time; |
| 77 |
mod test_utsname; |
| 78 |
|
| 79 |
#[cfg(any(linux_android, freebsdlike, apple_targets, target_os = "openbsd"))] |
| 80 |
mod test_statfs; |
| 81 |
|
| 82 |
#[cfg(not(any( |
| 83 |
target_os = "redox", |
| 84 |
target_os = "fuchsia", |
| 85 |
solarish, |
| 86 |
target_os = "haiku" |
| 87 |
)))] |
| 88 |
mod test_resource; |
| 89 |
|
| 90 |
// This test module should be enabled for both linux_android and freebsd, but |
| 91 |
// the `memfd_create(2)` symbol is not available under Linux QEMU, |
| 92 |
// |
| 93 |
// https://github.com/nix-rust/nix/actions/runs/9427112650/job/25970870477 |
| 94 |
// |
| 95 |
// and I haven't found a way to stop the linker from linking that symbol, so |
| 96 |
// only enable this for FreeBSD for now. |
| 97 |
#[cfg(target_os = "freebsd")] |
| 98 |
mod test_memfd; |