Debian Codegraph @

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

raw
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 sys/epoll.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 deps = [
17 "//libc:close",
18 "//libc:epoll_create",
19 "//libc/test/UnitTest:errno_test_helpers",
20 ],
21 )
22
23 libc_test(
24 name = "epoll_create1_test",
25 srcs = ["linux/epoll_create1_test.cpp"],
26 deps = [
27 "//libc:close",
28 "//libc:epoll_create1",
29 "//libc:hdr_sys_epoll_macros",
30 "//libc/test/UnitTest:errno_test_helpers",
31 ],
32 )
33
34 libc_test(
35 name = "epoll_ctl_test",
36 srcs = ["linux/epoll_ctl_test.cpp"],
37 deps = [
38 "//libc:close",
39 "//libc:epoll_create1",
40 "//libc:epoll_ctl",
41 "//libc:hdr_sys_epoll_macros",
42 "//libc:pipe",
43 "//libc:types_struct_epoll_event",
44 "//libc/test/UnitTest:errno_test_helpers",
45 ],
46 )
47
48 libc_test(
49 name = "epoll_wait_test",
50 srcs = ["linux/epoll_wait_test.cpp"],
51 deps = [
52 "//libc:close",
53 "//libc:epoll_create1",
54 "//libc:epoll_ctl",
55 "//libc:epoll_wait",
56 "//libc:hdr_sys_epoll_macros",
57 "//libc:pipe",
58 "//libc:types_struct_epoll_event",
59 "//libc/test/UnitTest:errno_test_helpers",
60 ],
61 )
62
63 libc_test(
64 name = "epoll_pwait_test",
65 srcs = ["linux/epoll_pwait_test.cpp"],
66 deps = [
67 "//libc:close",
68 "//libc:epoll_create1",
69 "//libc:epoll_ctl",
70 "//libc:epoll_pwait",
71 "//libc:hdr_sys_epoll_macros",
72 "//libc:pipe",
73 "//libc:types_struct_epoll_event",
74 "//libc/test/UnitTest:errno_test_helpers",
75 ],
76 )
77
78 libc_test(
79 name = "epoll_pwait2_test",
80 srcs = ["linux/epoll_pwait2_test.cpp"],
81 deps = [
82 "//libc:close",
83 "//libc:epoll_create1",
84 "//libc:epoll_ctl",
85 "//libc:epoll_pwait2",
86 "//libc:hdr_sys_epoll_macros",
87 "//libc:pipe",
88 "//libc:types_struct_epoll_event",
89 "//libc:types_struct_timespec",
90 "//libc/test/UnitTest:errno_test_helpers",
91 ],
92 )