llvm/utils/bazel/llvm-project-overlay/libc/test/src/sys/epoll/BUILD.bazel

# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Tests for LLVM libc string.h functions.

load("//libc/test:libc_test_rules.bzl", "libc_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

libc_test(
    name = "epoll_create_test",
    srcs = ["linux/epoll_create_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_create",
        "//libc:close",
    ],
)

libc_test(
    name = "epoll_create1_test",
    srcs = ["linux/epoll_create1_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_create1",
        "//libc:close",
    ],
    deps = [
        "//libc:hdr_sys_epoll_macros",
    ],
)

libc_test(
    name = "epoll_ctl_test",
    srcs = ["linux/epoll_ctl_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_create1",
        "//libc:epoll_ctl",
        "//libc:pipe",
        "//libc:close",
    ],
    deps = [
        "//libc:hdr_sys_epoll_macros",
        "//libc:types_struct_epoll_event",
    ],
)

libc_test(
    name = "epoll_wait_test",
    srcs = ["linux/epoll_wait_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_wait",
        "//libc:epoll_create1",
        "//libc:epoll_ctl",
        "//libc:pipe",
        "//libc:close",
    ],
    deps = [
        "//libc:hdr_sys_epoll_macros",
        "//libc:types_struct_epoll_event",
    ],
)

libc_test(
    name = "epoll_pwait_test",
    srcs = ["linux/epoll_pwait_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_pwait",
        "//libc:epoll_create1",
        "//libc:epoll_ctl",
        "//libc:pipe",
        "//libc:close",
    ],
    deps = [
        "//libc:hdr_sys_epoll_macros",
        "//libc:types_struct_epoll_event",
    ],
)

libc_test(
    name = "epoll_pwait2_test",
    srcs = ["linux/epoll_pwait2_test.cpp"],
    libc_function_deps = [
        "//libc:epoll_pwait2",
        "//libc:epoll_create1",
        "//libc:epoll_ctl",
        "//libc:pipe",
        "//libc:close",
    ],
    deps = [
        "//libc:hdr_sys_epoll_macros",
        "//libc:types_struct_epoll_event",
        "//libc:types_struct_timespec",
    ],
)