87 lines · plain
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-exception4 5# Tests for LLVM libc sys/epoll.h functions.6 7load("//libc/test:libc_test_rules.bzl", "libc_test")8 9package(default_visibility = ["//visibility:public"])10 11licenses(["notice"])12 13libc_test(14 name = "epoll_create_test",15 srcs = ["linux/epoll_create_test.cpp"],16 deps = [17 "//libc:close",18 "//libc:epoll_create",19 ],20)21 22libc_test(23 name = "epoll_create1_test",24 srcs = ["linux/epoll_create1_test.cpp"],25 deps = [26 "//libc:close",27 "//libc:epoll_create1",28 "//libc:hdr_sys_epoll_macros",29 ],30)31 32libc_test(33 name = "epoll_ctl_test",34 srcs = ["linux/epoll_ctl_test.cpp"],35 deps = [36 "//libc:close",37 "//libc:epoll_create1",38 "//libc:epoll_ctl",39 "//libc:hdr_sys_epoll_macros",40 "//libc:pipe",41 "//libc:types_struct_epoll_event",42 ],43)44 45libc_test(46 name = "epoll_wait_test",47 srcs = ["linux/epoll_wait_test.cpp"],48 deps = [49 "//libc:close",50 "//libc:epoll_create1",51 "//libc:epoll_ctl",52 "//libc:epoll_wait",53 "//libc:hdr_sys_epoll_macros",54 "//libc:pipe",55 "//libc:types_struct_epoll_event",56 ],57)58 59libc_test(60 name = "epoll_pwait_test",61 srcs = ["linux/epoll_pwait_test.cpp"],62 deps = [63 "//libc:close",64 "//libc:epoll_create1",65 "//libc:epoll_ctl",66 "//libc:epoll_pwait",67 "//libc:hdr_sys_epoll_macros",68 "//libc:pipe",69 "//libc:types_struct_epoll_event",70 ],71)72 73libc_test(74 name = "epoll_pwait2_test",75 srcs = ["linux/epoll_pwait2_test.cpp"],76 deps = [77 "//libc:close",78 "//libc:epoll_create1",79 "//libc:epoll_ctl",80 "//libc:epoll_pwait2",81 "//libc:hdr_sys_epoll_macros",82 "//libc:pipe",83 "//libc:types_struct_epoll_event",84 "//libc:types_struct_timespec",85 ],86)87