aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar adelez <adelez@google.com>2018-02-07 11:13:52 -0800
committerGravatar GitHub <noreply@github.com>2018-02-07 11:13:52 -0800
commit39307d23c375a4dcedd3112fe4f46227f9517888 (patch)
tree4bce067a1cac70dedf910e69d2701119637f7988 /test
parenta485cf599f5e3e038d1db3dd2fae9d00cf5fcaa7 (diff)
Revert "Revert "Define the tests as grpc_cc_test to automatically test against all po…""
Diffstat (limited to 'test')
-rwxr-xr-xtest/core/bad_client/generate_tests.bzl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/bad_client/generate_tests.bzl b/test/core/bad_client/generate_tests.bzl
index b846f97181..2769d5c3bb 100755
--- a/test/core/bad_client/generate_tests.bzl
+++ b/test/core/bad_client/generate_tests.bzl
@@ -16,6 +16,7 @@
"""Generates the appropriate build.json data for all the bad_client tests."""
+load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_cc_library")
def test_options():
return struct()
@@ -37,14 +38,14 @@ BAD_CLIENT_TESTS = {
}
def grpc_bad_client_tests():
- native.cc_library(
+ grpc_cc_library(
name = 'bad_client_test',
srcs = ['bad_client.cc'],
hdrs = ['bad_client.h'],
deps = ['//test/core/util:grpc_test_util', '//:grpc', '//:gpr', '//test/core/end2end:cq_verifier']
)
for t, topt in BAD_CLIENT_TESTS.items():
- native.cc_test(
+ grpc_cc_test(
name = '%s_bad_client_test' % t,
srcs = ['tests/%s.cc' % t],
deps = [':bad_client_test'],