OLD | NEW |
(Empty) | |
| 1 |
| 2 /* |
| 3 * |
| 4 * Copyright 2015-2016, Google Inc. |
| 5 * All rights reserved. |
| 6 * |
| 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions are |
| 9 * met: |
| 10 * |
| 11 * * Redistributions of source code must retain the above copyright |
| 12 * notice, this list of conditions and the following disclaimer. |
| 13 * * Redistributions in binary form must reproduce the above |
| 14 * copyright notice, this list of conditions and the following disclaimer |
| 15 * in the documentation and/or other materials provided with the |
| 16 * distribution. |
| 17 * * Neither the name of Google Inc. nor the names of its |
| 18 * contributors may be used to endorse or promote products derived from |
| 19 * this software without specific prior written permission. |
| 20 * |
| 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 * |
| 33 */ |
| 34 |
| 35 /* This file is auto-generated */ |
| 36 |
| 37 #include "test/core/end2end/end2end_tests.h" |
| 38 #include <string.h> |
| 39 #include <grpc/support/log.h> |
| 40 |
| 41 extern void bad_hostname(grpc_end2end_test_config config); |
| 42 extern void binary_metadata(grpc_end2end_test_config config); |
| 43 extern void call_creds(grpc_end2end_test_config config); |
| 44 extern void cancel_after_accept(grpc_end2end_test_config config); |
| 45 extern void cancel_after_client_done(grpc_end2end_test_config config); |
| 46 extern void cancel_after_invoke(grpc_end2end_test_config config); |
| 47 extern void cancel_before_invoke(grpc_end2end_test_config config); |
| 48 extern void cancel_in_a_vacuum(grpc_end2end_test_config config); |
| 49 extern void cancel_with_status(grpc_end2end_test_config config); |
| 50 extern void compressed_payload(grpc_end2end_test_config config); |
| 51 extern void connectivity(grpc_end2end_test_config config); |
| 52 extern void default_host(grpc_end2end_test_config config); |
| 53 extern void disappearing_server(grpc_end2end_test_config config); |
| 54 extern void empty_batch(grpc_end2end_test_config config); |
| 55 extern void graceful_server_shutdown(grpc_end2end_test_config config); |
| 56 extern void high_initial_seqno(grpc_end2end_test_config config); |
| 57 extern void hpack_size(grpc_end2end_test_config config); |
| 58 extern void invoke_large_request(grpc_end2end_test_config config); |
| 59 extern void large_metadata(grpc_end2end_test_config config); |
| 60 extern void max_concurrent_streams(grpc_end2end_test_config config); |
| 61 extern void max_message_length(grpc_end2end_test_config config); |
| 62 extern void negative_deadline(grpc_end2end_test_config config); |
| 63 extern void no_op(grpc_end2end_test_config config); |
| 64 extern void payload(grpc_end2end_test_config config); |
| 65 extern void ping(grpc_end2end_test_config config); |
| 66 extern void ping_pong_streaming(grpc_end2end_test_config config); |
| 67 extern void registered_call(grpc_end2end_test_config config); |
| 68 extern void request_with_flags(grpc_end2end_test_config config); |
| 69 extern void request_with_payload(grpc_end2end_test_config config); |
| 70 extern void server_finishes_request(grpc_end2end_test_config config); |
| 71 extern void shutdown_finishes_calls(grpc_end2end_test_config config); |
| 72 extern void shutdown_finishes_tags(grpc_end2end_test_config config); |
| 73 extern void simple_delayed_request(grpc_end2end_test_config config); |
| 74 extern void simple_metadata(grpc_end2end_test_config config); |
| 75 extern void simple_request(grpc_end2end_test_config config); |
| 76 extern void trailing_metadata(grpc_end2end_test_config config); |
| 77 |
| 78 void grpc_end2end_tests(int argc, char **argv, |
| 79 grpc_end2end_test_config config) { |
| 80 int i; |
| 81 |
| 82 if (argc <= 1) { |
| 83 bad_hostname(config); |
| 84 binary_metadata(config); |
| 85 call_creds(config); |
| 86 cancel_after_accept(config); |
| 87 cancel_after_client_done(config); |
| 88 cancel_after_invoke(config); |
| 89 cancel_before_invoke(config); |
| 90 cancel_in_a_vacuum(config); |
| 91 cancel_with_status(config); |
| 92 compressed_payload(config); |
| 93 connectivity(config); |
| 94 default_host(config); |
| 95 disappearing_server(config); |
| 96 empty_batch(config); |
| 97 graceful_server_shutdown(config); |
| 98 high_initial_seqno(config); |
| 99 hpack_size(config); |
| 100 invoke_large_request(config); |
| 101 large_metadata(config); |
| 102 max_concurrent_streams(config); |
| 103 max_message_length(config); |
| 104 negative_deadline(config); |
| 105 no_op(config); |
| 106 payload(config); |
| 107 ping(config); |
| 108 ping_pong_streaming(config); |
| 109 registered_call(config); |
| 110 request_with_flags(config); |
| 111 request_with_payload(config); |
| 112 server_finishes_request(config); |
| 113 shutdown_finishes_calls(config); |
| 114 shutdown_finishes_tags(config); |
| 115 simple_delayed_request(config); |
| 116 simple_metadata(config); |
| 117 simple_request(config); |
| 118 trailing_metadata(config); |
| 119 return; |
| 120 } |
| 121 |
| 122 for (i = 1; i < argc; i++) { |
| 123 if (0 == strcmp("bad_hostname", argv[i])) { |
| 124 bad_hostname(config); |
| 125 continue; |
| 126 } |
| 127 if (0 == strcmp("binary_metadata", argv[i])) { |
| 128 binary_metadata(config); |
| 129 continue; |
| 130 } |
| 131 if (0 == strcmp("call_creds", argv[i])) { |
| 132 call_creds(config); |
| 133 continue; |
| 134 } |
| 135 if (0 == strcmp("cancel_after_accept", argv[i])) { |
| 136 cancel_after_accept(config); |
| 137 continue; |
| 138 } |
| 139 if (0 == strcmp("cancel_after_client_done", argv[i])) { |
| 140 cancel_after_client_done(config); |
| 141 continue; |
| 142 } |
| 143 if (0 == strcmp("cancel_after_invoke", argv[i])) { |
| 144 cancel_after_invoke(config); |
| 145 continue; |
| 146 } |
| 147 if (0 == strcmp("cancel_before_invoke", argv[i])) { |
| 148 cancel_before_invoke(config); |
| 149 continue; |
| 150 } |
| 151 if (0 == strcmp("cancel_in_a_vacuum", argv[i])) { |
| 152 cancel_in_a_vacuum(config); |
| 153 continue; |
| 154 } |
| 155 if (0 == strcmp("cancel_with_status", argv[i])) { |
| 156 cancel_with_status(config); |
| 157 continue; |
| 158 } |
| 159 if (0 == strcmp("compressed_payload", argv[i])) { |
| 160 compressed_payload(config); |
| 161 continue; |
| 162 } |
| 163 if (0 == strcmp("connectivity", argv[i])) { |
| 164 connectivity(config); |
| 165 continue; |
| 166 } |
| 167 if (0 == strcmp("default_host", argv[i])) { |
| 168 default_host(config); |
| 169 continue; |
| 170 } |
| 171 if (0 == strcmp("disappearing_server", argv[i])) { |
| 172 disappearing_server(config); |
| 173 continue; |
| 174 } |
| 175 if (0 == strcmp("empty_batch", argv[i])) { |
| 176 empty_batch(config); |
| 177 continue; |
| 178 } |
| 179 if (0 == strcmp("graceful_server_shutdown", argv[i])) { |
| 180 graceful_server_shutdown(config); |
| 181 continue; |
| 182 } |
| 183 if (0 == strcmp("high_initial_seqno", argv[i])) { |
| 184 high_initial_seqno(config); |
| 185 continue; |
| 186 } |
| 187 if (0 == strcmp("hpack_size", argv[i])) { |
| 188 hpack_size(config); |
| 189 continue; |
| 190 } |
| 191 if (0 == strcmp("invoke_large_request", argv[i])) { |
| 192 invoke_large_request(config); |
| 193 continue; |
| 194 } |
| 195 if (0 == strcmp("large_metadata", argv[i])) { |
| 196 large_metadata(config); |
| 197 continue; |
| 198 } |
| 199 if (0 == strcmp("max_concurrent_streams", argv[i])) { |
| 200 max_concurrent_streams(config); |
| 201 continue; |
| 202 } |
| 203 if (0 == strcmp("max_message_length", argv[i])) { |
| 204 max_message_length(config); |
| 205 continue; |
| 206 } |
| 207 if (0 == strcmp("negative_deadline", argv[i])) { |
| 208 negative_deadline(config); |
| 209 continue; |
| 210 } |
| 211 if (0 == strcmp("no_op", argv[i])) { |
| 212 no_op(config); |
| 213 continue; |
| 214 } |
| 215 if (0 == strcmp("payload", argv[i])) { |
| 216 payload(config); |
| 217 continue; |
| 218 } |
| 219 if (0 == strcmp("ping", argv[i])) { |
| 220 ping(config); |
| 221 continue; |
| 222 } |
| 223 if (0 == strcmp("ping_pong_streaming", argv[i])) { |
| 224 ping_pong_streaming(config); |
| 225 continue; |
| 226 } |
| 227 if (0 == strcmp("registered_call", argv[i])) { |
| 228 registered_call(config); |
| 229 continue; |
| 230 } |
| 231 if (0 == strcmp("request_with_flags", argv[i])) { |
| 232 request_with_flags(config); |
| 233 continue; |
| 234 } |
| 235 if (0 == strcmp("request_with_payload", argv[i])) { |
| 236 request_with_payload(config); |
| 237 continue; |
| 238 } |
| 239 if (0 == strcmp("server_finishes_request", argv[i])) { |
| 240 server_finishes_request(config); |
| 241 continue; |
| 242 } |
| 243 if (0 == strcmp("shutdown_finishes_calls", argv[i])) { |
| 244 shutdown_finishes_calls(config); |
| 245 continue; |
| 246 } |
| 247 if (0 == strcmp("shutdown_finishes_tags", argv[i])) { |
| 248 shutdown_finishes_tags(config); |
| 249 continue; |
| 250 } |
| 251 if (0 == strcmp("simple_delayed_request", argv[i])) { |
| 252 simple_delayed_request(config); |
| 253 continue; |
| 254 } |
| 255 if (0 == strcmp("simple_metadata", argv[i])) { |
| 256 simple_metadata(config); |
| 257 continue; |
| 258 } |
| 259 if (0 == strcmp("simple_request", argv[i])) { |
| 260 simple_request(config); |
| 261 continue; |
| 262 } |
| 263 if (0 == strcmp("trailing_metadata", argv[i])) { |
| 264 trailing_metadata(config); |
| 265 continue; |
| 266 } |
| 267 gpr_log(GPR_DEBUG, "not a test: '%s'", argv[i]); |
| 268 abort(); |
| 269 } |
| 270 } |
OLD | NEW |