diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-10-20 10:23:53 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-10-20 10:23:53 +0200 |
commit | 60ca22fef5e6e89311eee11c7aa6d7a6a5aff430 (patch) | |
tree | a2403d0b593e420776d2d9198564af9b5c1ba1e8 | |
parent | 31d11dbfb8db0fc39da64be9c094e2900e9aedfb (diff) |
Basic testing.
-rw-r--r-- | grpc-build-system.bzl | 1 | ||||
-rw-r--r-- | test/core/support/BUILD | 125 | ||||
-rw-r--r-- | test/core/util/BUILD | 45 |
3 files changed, 171 insertions, 0 deletions
diff --git a/grpc-build-system.bzl b/grpc-build-system.bzl index 1d6d1a42c2..c18c57f087 100644 --- a/grpc-build-system.bzl +++ b/grpc-build-system.bzl @@ -8,6 +8,7 @@ def grpc_cc_library(name, srcs = [], hdrs = [], deps = [], standalone = False, l hdrs = hdrs, deps = deps, copts = copts, + linkopts = ["-pthread"], includes = [ "include" ] diff --git a/test/core/support/BUILD b/test/core/support/BUILD new file mode 100644 index 0000000000..50b8ca37c2 --- /dev/null +++ b/test/core/support/BUILD @@ -0,0 +1,125 @@ +cc_test( + name = "alloc_test", + srcs = ["alloc_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "avl_test", + srcs = ["avl_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "backoff_test", + srcs = ["backoff_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "cmdline_test", + srcs = ["cmdline_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "cpu_test", + srcs = ["cpu_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "env_test", + srcs = ["env_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "histogram_test", + srcs = ["histogram_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "host_port_test", + srcs = ["host_port_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "log_test", + srcs = ["log_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "mpscq_test", + srcs = ["mpscq_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "murmur_hash_test", + srcs = ["murmur_hash_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "percent_encoding_test", + srcs = ["percent_encoding_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "slice_buffer_test", + srcs = ["slice_buffer_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "slice_test", + srcs = ["slice_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "stack_lockfree_test", + srcs = ["stack_lockfree_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "string_test", + srcs = ["string_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "sync_test", + srcs = ["sync_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "thd_test", + srcs = ["thd_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "time_test", + srcs = ["time_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "tls_test", + srcs = ["tls_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) + +cc_test( + name = "useful_test", + srcs = ["useful_test.c"], + deps = ["//:gpr", "//test/core/util:gpr_test_util"], +) diff --git a/test/core/util/BUILD b/test/core/util/BUILD new file mode 100644 index 0000000000..60dd6d9895 --- /dev/null +++ b/test/core/util/BUILD @@ -0,0 +1,45 @@ + + +cc_library( + name = "gpr_test_util", + srcs = [ + "test_config.c", + ], + hdrs = [ + "test_config.h", + ], + deps = ["//:gpr"], + visibility = ["//:__subpackages__"], +) + +cc_library( + name = "grpc_test_util", + srcs = [ + "grpc_profiler.c", + "memory_counters.c", + "mock_endpoint.c", + "one_corpus_entry_fuzzer.c", + "parse_hexstring.c", + "passthru_endpoint.c", + "port_posix.c", + "port_server_client.c", + "port_windows.c", + "reconnect_server.c", + "slice_splitter.c", + "test_tcp_server.c", + ], + hdrs = [ + "grpc_profiler.h", + "memory_counters.h", + "mock_endpoint.h", + "parse_hexstring.h", + "passthru_endpoint.h", + "port.h", + "port_server_client.h", + "reconnect_server.h", + "slice_splitter.h", + "test_tcp_server.h", + ], + deps = [":gpr_test_util", "//:grpc"], + visibility = ["//:__subpackages__"], +) |