|
|
|
@ -27,15 +27,17 @@ |
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
|
|
|
|
|
load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary") |
|
|
|
|
|
|
|
|
|
licenses(["notice"]) # 3-clause BSD |
|
|
|
|
|
|
|
|
|
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
|
|
|
|
|
|
|
|
|
cc_library( |
|
|
|
|
grpc_cc_library( |
|
|
|
|
name = "endpoint_tests", |
|
|
|
|
srcs = ["endpoint_tests.c"], |
|
|
|
|
hdrs = ["endpoint_tests.h"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
visibility = ["//test:__subpackages__"], |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
@ -45,10 +47,10 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "combiner_test", |
|
|
|
|
srcs = ["combiner_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -57,10 +59,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "endpoint_pair_test", |
|
|
|
|
srcs = ["endpoint_pair_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
":endpoint_tests", |
|
|
|
|
"//:gpr", |
|
|
|
@ -70,10 +72,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "ev_epoll_linux_test", |
|
|
|
|
srcs = ["ev_epoll_linux_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -82,10 +84,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "fd_conservation_posix_test", |
|
|
|
|
srcs = ["fd_conservation_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -94,10 +96,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "fd_posix_test", |
|
|
|
|
srcs = ["fd_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -106,10 +108,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "load_file_test", |
|
|
|
|
srcs = ["load_file_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -118,10 +120,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "pollset_set_test", |
|
|
|
|
srcs = ["pollset_set_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -130,10 +132,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "resolve_address_posix_test", |
|
|
|
|
srcs = ["resolve_address_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -142,10 +144,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "resolve_address_test", |
|
|
|
|
srcs = ["resolve_address_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -154,10 +156,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "resource_quota_test", |
|
|
|
|
srcs = ["resource_quota_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -166,10 +168,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "sockaddr_utils_test", |
|
|
|
|
srcs = ["sockaddr_utils_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -178,10 +180,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "socket_utils_test", |
|
|
|
|
srcs = ["socket_utils_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -190,10 +192,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "tcp_client_posix_test", |
|
|
|
|
srcs = ["tcp_client_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -202,10 +204,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "tcp_posix_test", |
|
|
|
|
srcs = ["tcp_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
":endpoint_tests", |
|
|
|
|
"//:gpr", |
|
|
|
@ -215,10 +217,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "tcp_server_posix_test", |
|
|
|
|
srcs = ["tcp_server_posix_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -227,10 +229,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "time_averaged_stats_test", |
|
|
|
|
srcs = ["time_averaged_stats_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -239,10 +241,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "timer_heap_test", |
|
|
|
|
srcs = ["timer_heap_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -251,10 +253,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "timer_list_test", |
|
|
|
|
srcs = ["timer_list_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -263,10 +265,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "udp_server_test", |
|
|
|
|
srcs = ["udp_server_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
@ -275,10 +277,10 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = "wakeup_fd_cv_test", |
|
|
|
|
srcs = ["wakeup_fd_cv_test.c"], |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
language = "C", |
|
|
|
|
deps = [ |
|
|
|
|
"//:gpr", |
|
|
|
|
"//:grpc", |
|
|
|
|