aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-20 12:15:27 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-20 12:15:27 -0700
commitd3e645f07d2c939c1dc7aa1bfda70d592d8491ca (patch)
tree58846cd3f0adc0c64e4fd75141711bf6f4a6d7d1 /test/core/util
parent31a1bbd4bc7dc2097ddff45bf661b287b092aab2 (diff)
e2e fuzzers
Diffstat (limited to 'test/core/util')
-rw-r--r--test/core/util/BUILD1
-rw-r--r--test/core/util/grpc_fuzzer.bzl5
2 files changed, 4 insertions, 2 deletions
diff --git a/test/core/util/BUILD b/test/core/util/BUILD
index 82207913ef..e44e4e2105 100644
--- a/test/core/util/BUILD
+++ b/test/core/util/BUILD
@@ -41,6 +41,7 @@ cc_library(
],
deps = [":gpr_test_util", "//:grpc"],
visibility = ["//test:__subpackages__"],
+ copts = ["-std=c99"],
)
cc_library(
diff --git a/test/core/util/grpc_fuzzer.bzl b/test/core/util/grpc_fuzzer.bzl
index d9a227641c..3ec9e4e485 100644
--- a/test/core/util/grpc_fuzzer.bzl
+++ b/test/core/util/grpc_fuzzer.bzl
@@ -27,16 +27,17 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-def grpc_fuzzer(name, corpus, srcs = [], deps = []):
+def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs):
native.cc_library(
name = "%s/one_entry" % name,
srcs = srcs,
deps = deps + ["//test/core/util:one_corpus_entry_fuzzer"],
+ **kwargs
)
for entry in native.glob(['%s/*' % corpus]):
native.cc_test(
name = '%s/one_entry/%s' % (name, entry),
deps = [':%s/one_entry' % name],
args = ['$(location %s)' % entry],
- data = [entry]
+ data = [entry],
)