63 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 socket.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 = "socket_test",15 srcs = ["linux/socket_test.cpp"],16 deps = [17 "//libc:close",18 "//libc:socket",19 ],20)21 22libc_test(23 name = "socketpair_test",24 srcs = ["linux/socketpair_test.cpp"],25 deps = [26 "//libc:close",27 "//libc:socketpair",28 ],29)30 31libc_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 42libc_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 53libc_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)63