aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/naming/BUILD
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-08-07 18:09:11 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-09-14 14:32:30 -0700
commit27bf05d003f48e6f95b836a5e5450e4bb787f9ef (patch)
treedf2da3ef874e22264d5668f726527e2c4161b94e /test/cpp/naming/BUILD
parent3bf7b714a5458aadfc1e2761ede1213f69ef7959 (diff)
Add tests for c-ares wrapper using a local DNS server.
Diffstat (limited to 'test/cpp/naming/BUILD')
-rw-r--r--test/cpp/naming/BUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/cpp/naming/BUILD b/test/cpp/naming/BUILD
new file mode 100644
index 0000000000..24c3d1a443
--- /dev/null
+++ b/test/cpp/naming/BUILD
@@ -0,0 +1,49 @@
+# Copyright 2017 gRPC authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "-layering_check",
+ "-parse_headers",
+ ],
+)
+
+licenses(["notice"]) # Apache v2
+
+load("//bazel:grpc_build_system.bzl", "grpc_sh_binary", "grpc_py_binary")
+
+load(":generate_resolver_component_tests.bzl", "generate_resolver_component_tests")
+
+# Meant to be invoked only through the top-level shell script driver.
+grpc_sh_binary(
+ name = "resolver_component_tests_runner",
+ srcs = [
+ "resolver_component_tests_runner.sh",
+ ],
+)
+
+grpc_py_binary(
+ name = "test_dns_server",
+ srcs = ["test_dns_server.py"],
+ data = [
+ "resolver_test_record_groups.yaml",
+ ],
+ deps = [
+ "twisted",
+ "yaml",
+ ]
+)
+
+generate_resolver_component_tests()