Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Feb 3, 2025
1 parent b64756a commit 1bfc1b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion test/core/end2end/end2end_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <grpc/grpc.h>

#include <memory>
#include <optional>
#include <regex>
#include <tuple>

Expand Down Expand Up @@ -65,12 +66,13 @@ Slice RandomBinarySlice(size_t length) {

CoreEnd2endTest::CoreEnd2endTest(
const CoreTestConfiguration* config,
const core_end2end_test_fuzzer::Msg* fuzzing_args)
const core_end2end_test_fuzzer::Msg* fuzzing_args, absl::string_view suite_name)
: test_config_(config), fuzzing_(fuzzing_args != nullptr) {
if (fuzzing_args != nullptr) {
ConfigVars::Overrides overrides =
OverridesFromFuzzConfigVars(fuzzing_args->config_vars());
overrides.default_ssl_roots_file_path = CA_CERT_PATH;
if (suite_name == "NoLoggingTests") overrides.trace = std::nullopt;
ConfigVars::SetOverrides(overrides);
TestOnlyReloadExperimentsFromConfigVariables();
FuzzingEventEngine::Options options;
Expand Down
19 changes: 10 additions & 9 deletions test/core/end2end/end2end_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ inline std::ostream& operator<<(std::ostream& out,
class CoreEnd2endTest {
public:
CoreEnd2endTest(const CoreTestConfiguration* config,
const core_end2end_test_fuzzer::Msg* fuzzing_args);
const core_end2end_test_fuzzer::Msg* fuzzing_args,
absl::string_view suite_name);
~CoreEnd2endTest();

void SetCqVerifierStepFn(
Expand Down Expand Up @@ -692,13 +693,13 @@ core_end2end_test_fuzzer::Msg ParseTestProto(std::string text);
defined(GRPC_END2END_TEST_NO_GTEST)
#define CORE_END2END_TEST_P(suite, name)
#else
#define CORE_END2END_TEST_P(suite, name) \
TEST_P(suite, name) { \
if ((GetParam()->feature_mask & FEATURE_MASK_IS_CALL_V3) && \
(grpc_core::ConfigVars::Get().PollStrategy() == "poll")) { \
GTEST_SKIP() << "call-v3 not supported with poll poller"; \
} \
CoreEnd2endTest_##suite##_##name(GetParam(), nullptr).RunTest(); \
#define CORE_END2END_TEST_P(suite, name) \
TEST_P(suite, name) { \
if ((GetParam()->feature_mask & FEATURE_MASK_IS_CALL_V3) && \
(grpc_core::ConfigVars::Get().PollStrategy() == "poll")) { \
GTEST_SKIP() << "call-v3 not supported with poll poller"; \
} \
CoreEnd2endTest_##suite##_##name(GetParam(), nullptr, #suite).RunTest(); \
}
#endif

Expand Down Expand Up @@ -730,7 +731,7 @@ core_end2end_test_fuzzer::Msg ParseTestProto(std::string text);
GTEST_SKIP() << "event_engine_dns_non_client_channel experiment breaks " \
"fuzzing currently"; \
} \
CoreEnd2endTest_##suite##_##name(config, &msg).RunTest(); \
CoreEnd2endTest_##suite##_##name(config, &msg, #suite).RunTest(); \
grpc_event_engine::experimental::ShutdownDefaultEventEngine(); \
} \
CORE_END2END_TEST_P(suite, name) \
Expand Down

0 comments on commit 1bfc1b6

Please sign in to comment.