Debian Codegraph @

utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/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 socket.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 = "socket_test",
15 srcs = ["linux/socket_test.cpp"],
16 deps = [
17 "//libc:close",
18 "//libc:socket",
19 ],
20 )
21
22 libc_test(
23 name = "socketpair_test",
24 srcs = ["linux/socketpair_test.cpp"],
25 deps = [
26 "//libc:close",
27 "//libc:socketpair",
28 ],
29 )
30
31 libc_test(
32 name = "send_recv_test",
33 srcs = ["linux/send_recv_test.cpp"],
34 deps = [
35 "//libc:close",
36 "//libc:recv",
37 "//libc:send",
38 "//libc:socketpair",
39 ],
40 )
41
42 libc_test(
43 name = "sendto_recvfrom_test",
44 srcs = ["linux/sendto_recvfrom_test.cpp"],
45 deps = [
46 "//libc:close",
47 "//libc:recvfrom",
48 "//libc:sendto",
49 "//libc:socketpair",
50 ],
51 )
52
53 libc_test(
54 name = "sendmsg_recvmsg_test",
55 srcs = ["linux/sendmsg_recvmsg_test.cpp"],
56 deps = [
57 "//libc:close",
58 "//libc:recvmsg",
59 "//libc:sendmsg",
60 "//libc:socketpair",
61 ],
62 )