Merge pull request #14326 from adelez/foundry_integration

Define the tests as grpc_cc_test to automatically test against all po…
pull/14330/head
adelez 7 years ago committed by GitHub
commit d1b6062894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/core/bad_client/generate_tests.bzl

@ -16,6 +16,7 @@
"""Generates the appropriate build.json data for all the bad_client tests.""" """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(): def test_options():
return struct() return struct()
@ -36,14 +37,14 @@ BAD_CLIENT_TESTS = {
} }
def grpc_bad_client_tests(): def grpc_bad_client_tests():
native.cc_library( grpc_cc_library(
name = 'bad_client_test', name = 'bad_client_test',
srcs = ['bad_client.cc'], srcs = ['bad_client.cc'],
hdrs = ['bad_client.h'], hdrs = ['bad_client.h'],
deps = ['//test/core/util:grpc_test_util', '//:grpc', '//:gpr', '//test/core/end2end:cq_verifier'] deps = ['//test/core/util:grpc_test_util', '//:grpc', '//:gpr', '//test/core/end2end:cq_verifier']
) )
for t, topt in BAD_CLIENT_TESTS.items(): for t, topt in BAD_CLIENT_TESTS.items():
native.cc_test( grpc_cc_test(
name = '%s_bad_client_test' % t, name = '%s_bad_client_test' % t,
srcs = ['tests/%s.cc' % t], srcs = ['tests/%s.cc' % t],
deps = [':bad_client_test'], deps = [':bad_client_test'],

Loading…
Cancel
Save