Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bazel/envoy_build_system.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def envoy_cc_binary(
)

# Envoy C++ fuzz test targes. These are not included in coverage runs.
def envoy_cc_fuzz_test(name, corpus, deps = [], **kwargs):
def envoy_cc_fuzz_test(name, corpus, deps = [], tags = [], **kwargs):
test_lib_name = name + "_lib"
envoy_cc_test_library(
name = test_lib_name,
Expand All @@ -255,6 +255,7 @@ def envoy_cc_fuzz_test(name, corpus, deps = [], **kwargs):
"//test/fuzz:main",
],
}),
tags = tags,
)
native.cc_binary(
name = name + "_driverless",
Expand All @@ -263,7 +264,7 @@ def envoy_cc_fuzz_test(name, corpus, deps = [], **kwargs):
linkstatic = 1,
testonly = 1,
deps = [":" + test_lib_name],
tags = ["manual"],
tags = ["manual"] + tags,
)

# Envoy C++ test targets should be specified with this function.
Expand Down
4 changes: 4 additions & 0 deletions test/common/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ envoy_cc_fuzz_test(
name = "base64_fuzz_test",
srcs = ["base64_fuzz_test.cc"],
corpus = "base64_corpus",
# Fuzzer is stable, no bugs, simple test target; avoid emitting CO2.
tags = ["no_fuzz"],
deps = ["//source/common/common:base64_lib"],
)

envoy_cc_fuzz_test(
name = "utility_fuzz_test",
srcs = ["utility_fuzz_test.cc"],
corpus = "utility_corpus",
# Fuzzer is stable, no bugs, simple test target; avoid emitting CO2.
tags = ["no_fuzz"],
deps = ["//source/common/common:utility_lib"],
)

Expand Down
2 changes: 2 additions & 0 deletions test/common/protobuf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ envoy_cc_fuzz_test(
name = "value_util_fuzz_test",
srcs = ["value_util_fuzz_test.cc"],
corpus = "value_util_corpus",
# Fuzzer is stable, no bugs, simple test target; avoid emitting CO2.
tags = ["no_fuzz"],
deps = ["//source/common/protobuf:utility_lib"],
)