1 <%def name="end2end_selector(tests)">
4 * Copyright 2015 gRPC authors.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 <% tests = sorted(tests) %>\
21 /* This file is auto-generated */
23 #include "test/core/end2end/end2end_tests.h"
28 #include <grpc/support/log.h>
31 static bool g_pre_init_called = false;
34 extern void ${test}(grpc_end2end_test_config config);
35 extern void ${test}_pre_init(void);
38 void grpc_end2end_tests_pre_init(void) {
39 GPR_ASSERT(!g_pre_init_called);
40 g_pre_init_called = true;
46 void grpc_end2end_tests(int argc, char **argv,
47 grpc_end2end_test_config config) {
50 GPR_ASSERT(g_pre_init_called);
59 for (i = 1; i < argc; i++) {
61 if (0 == strcmp("${test}", argv[i])) {
66 gpr_log(GPR_DEBUG, "not a test: '%s'", argv[i]);