Go to the documentation of this file.
27 #include "absl/flags/flag.h"
45 bool, running_under_bazel,
false,
46 "True if this test is running under bazel. "
47 "False indicates that this test is running under run_tests.py. "
48 "Child process test binaries are located differently based on this flag. ");
51 "Name, without the preceding path, of the test binary");
54 "/com_github_grpc_grpc",
55 "This flag only applies if runner_under_bazel is true. This "
56 "flag is ignored if runner_under_bazel is false. "
57 "Directory of the <repo-root>/test directory relative to bazel's "
58 "TEST_SRCDIR environment variable");
61 "Comma-separated list of opaque command args to plumb through to "
62 "the binary pointed at by --test_bin_name");
79 {
std::move(test_runner_bin_path),
"--test_bin_path=" + test_bin_path,
80 "--dns_server_bin_path=" + dns_server_bin_path,
83 "--dns_resolver_bin_path=" + dns_resolver_bin_path,
84 "--tcp_connect_bin_path=" + tcp_connect_bin_path,
94 "Resolver component test test-runner exited with code %d",
98 }
else if (WIFSIGNALED(
status)) {
100 "Resolver component test test-runner ended from signal %d",
105 "Resolver component test test-runner ended with unknown status %d",
121 int main(
int argc,
char** argv) {
132 char* test_srcdir =
gpr_getenv(
"TEST_SRCDIR");
135 absl::GetFlag(FLAGS_grpc_test_directory_relative_to_test_srcdir) +
141 bin_dir +
"/resolver_component_tests_runner",
143 bin_dir +
"/utils/dns_server",
144 bin_dir +
"/resolver_test_record_groups.yaml",
145 bin_dir +
"/utils/dns_resolver", bin_dir +
"/utils/tcp_connect");
150 std::string const bin_dir = my_bin.substr(0, my_bin.rfind(
'/'));
153 "test/cpp/naming/resolver_component_tests_runner.py",
155 "test/cpp/naming/utils/dns_server.py",
156 "test/cpp/naming/resolver_test_record_groups.yaml",
157 "test/cpp/naming/utils/dns_resolver.py",
158 "test/cpp/naming/utils/tcp_connect.py");
GPRAPI void gpr_cv_signal(gpr_cv *cv)
void InitTest(int *argc, char ***argv, bool remove_flags)
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
int main(int argc, char **argv)
GPRAPI void gpr_free(void *ptr)
ABSL_FLAG(bool, running_under_bazel, false, "True if this test is running under bazel. " "False indicates that this test is running under run_tests.py. " "Child process test binaries are located differently based on this flag. ")
GPRAPI void gpr_mu_destroy(gpr_mu *mu)
char * gpr_getenv(const char *name)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
GPRAPI void gpr_cv_destroy(gpr_cv *cv)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI void gpr_mu_init(gpr_mu *mu)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
ABSL_MUST_USE_RESULT T GetFlag(const absl::Flag< T > &flag)
int grpc_pick_unused_port_or_die(void)
GRPCAPI void grpc_init(void)
void InvokeResolverComponentTestsRunner(std::string test_runner_bin_path, const std::string &test_bin_path, const std::string &dns_server_bin_path, const std::string &records_config_path, const std::string &dns_resolver_bin_path, const std::string &tcp_connect_bin_path)
static bool to_string(zval *from)
GRPCAPI void grpc_shutdown(void)
GPRAPI void gpr_cv_init(gpr_cv *cv)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:04