|
|
|
@ -13,6 +13,7 @@ |
|
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
|
load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_cc_library", "grpc_cc_binary") |
|
|
|
|
|
|
|
|
|
def test_options(): |
|
|
|
|
return struct() |
|
|
|
@ -22,7 +23,7 @@ def test_options(): |
|
|
|
|
BAD_SSL_TESTS = ['cert', 'alpn'] |
|
|
|
|
|
|
|
|
|
def grpc_bad_ssl_tests(): |
|
|
|
|
native.cc_library( |
|
|
|
|
grpc_cc_library( |
|
|
|
|
name = 'bad_ssl_test_server', |
|
|
|
|
srcs = ['server_common.cc'], |
|
|
|
|
hdrs = ['server_common.h'], |
|
|
|
@ -31,12 +32,12 @@ def grpc_bad_ssl_tests(): |
|
|
|
|
'//test/core/end2end:ssl_test_data'] |
|
|
|
|
) |
|
|
|
|
for t in BAD_SSL_TESTS: |
|
|
|
|
native.cc_binary( |
|
|
|
|
grpc_cc_binary( |
|
|
|
|
name = 'bad_ssl_%s_server' % t, |
|
|
|
|
srcs = ['servers/%s.cc' % t], |
|
|
|
|
deps = [':bad_ssl_test_server'], |
|
|
|
|
) |
|
|
|
|
native.cc_test( |
|
|
|
|
grpc_cc_test( |
|
|
|
|
name = 'bad_ssl_%s_test' % t, |
|
|
|
|
srcs = ['bad_ssl_test.cc'], |
|
|
|
|
data = [':bad_ssl_%s_server' % t, |
|
|
|
|