| 1 |
# This file is licensed under the Apache License v2.0 with LLVM Exceptions. |
| 2 |
# See https://llvm.org/LICENSE.txt for license information. |
| 3 |
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 |
|
| 5 |
# Tests for LLVM libc string.h functions. |
| 6 |
|
| 7 |
load("//libc/test:libc_test_rules.bzl", "libc_test") |
| 8 |
|
| 9 |
package(default_visibility = ["//visibility:public"]) |
| 10 |
|
| 11 |
licenses(["notice"]) |
| 12 |
|
| 13 |
libc_test( |
| 14 |
name = "epoll_create_test", |
| 15 |
srcs = ["linux/epoll_create_test.cpp"], |
| 16 |
libc_function_deps = [ |
| 17 |
"//libc:epoll_create", |
| 18 |
"//libc:close", |
| 19 |
], |
| 20 |
) |
| 21 |
|
| 22 |
libc_test( |
| 23 |
name = "epoll_create1_test", |
| 24 |
srcs = ["linux/epoll_create1_test.cpp"], |
| 25 |
libc_function_deps = [ |
| 26 |
"//libc:epoll_create1", |
| 27 |
"//libc:close", |
| 28 |
], |
| 29 |
deps = [ |
| 30 |
"//libc:hdr_sys_epoll_macros", |
| 31 |
], |
| 32 |
) |
| 33 |
|
| 34 |
libc_test( |
| 35 |
name = "epoll_ctl_test", |
| 36 |
srcs = ["linux/epoll_ctl_test.cpp"], |
| 37 |
libc_function_deps = [ |
| 38 |
"//libc:epoll_create1", |
| 39 |
"//libc:epoll_ctl", |
| 40 |
"//libc:pipe", |
| 41 |
"//libc:close", |
| 42 |
], |
| 43 |
deps = [ |
| 44 |
"//libc:hdr_sys_epoll_macros", |
| 45 |
"//libc:types_struct_epoll_event", |
| 46 |
], |
| 47 |
) |
| 48 |
|
| 49 |
libc_test( |
| 50 |
name = "epoll_wait_test", |
| 51 |
srcs = ["linux/epoll_wait_test.cpp"], |
| 52 |
libc_function_deps = [ |
| 53 |
"//libc:epoll_wait", |
| 54 |
"//libc:epoll_create1", |
| 55 |
"//libc:epoll_ctl", |
| 56 |
"//libc:pipe", |
| 57 |
"//libc:close", |
| 58 |
], |
| 59 |
deps = [ |
| 60 |
"//libc:hdr_sys_epoll_macros", |
| 61 |
"//libc:types_struct_epoll_event", |
| 62 |
], |
| 63 |
) |
| 64 |
|
| 65 |
libc_test( |
| 66 |
name = "epoll_pwait_test", |
| 67 |
srcs = ["linux/epoll_pwait_test.cpp"], |
| 68 |
libc_function_deps = [ |
| 69 |
"//libc:epoll_pwait", |
| 70 |
"//libc:epoll_create1", |
| 71 |
"//libc:epoll_ctl", |
| 72 |
"//libc:pipe", |
| 73 |
"//libc:close", |
| 74 |
], |
| 75 |
deps = [ |
| 76 |
"//libc:hdr_sys_epoll_macros", |
| 77 |
"//libc:types_struct_epoll_event", |
| 78 |
], |
| 79 |
) |
| 80 |
|
| 81 |
#TODO: Enable once epoll_pwait2 availablilty can be checked first. |
| 82 |
# https://github.com/llvm/llvm-project/issues/80060 |
| 83 |
# libc_test( |
| 84 |
# name = "epoll_pwait2_test", |
| 85 |
# srcs = ["linux/epoll_pwait2_test.cpp"], |
| 86 |
# libc_function_deps = [ |
| 87 |
# "//libc:epoll_pwait2", |
| 88 |
# "//libc:epoll_create1", |
| 89 |
# "//libc:epoll_ctl", |
| 90 |
# "//libc:pipe", |
| 91 |
# "//libc:close", |
| 92 |
# ], |
| 93 |
# deps = [ |
| 94 |
# "//libc:hdr_sys_epoll_macros", |
| 95 |
# "//libc:types_struct_epoll_event", |
| 96 |
# "//libc:types_struct_timespec", |
| 97 |
# ], |
| 98 |
# ) |