Move identity_fuzz to new location. Add linkstatic=1 to fuzz target.

PiperOrigin-RevId: 315378448
Change-Id: I1df43a32fa81f2c9ff34aa2defbdb431831244ca
This commit is contained in:
Mihai Maruseac 2020-06-08 16:34:08 -07:00 committed by TensorFlower Gardener
parent 56c7861736
commit b546504c58
4 changed files with 15 additions and 2 deletions

View File

@ -17,8 +17,6 @@ cc_library(
],
)
tf_ops_fuzz_target_lib("identity")
tf_ops_fuzz_target_lib("string_to_number")
tf_oss_fuzz_corpus("string_to_number")

View File

@ -15,3 +15,17 @@ tf_fuzz_target(
name = "demo_fuzz",
srcs = ["demo_fuzz.cc"],
)
# A trivial fuzzer with no pre-specified corpus.
# TODO(mihaimaruseac): Move fuzz_session and the op fuzzers to a subdirectory
tf_fuzz_target(
name = "identity_fuzz",
srcs = ["identity_fuzz.cc"],
deps = [
"//tensorflow/cc:cc_ops",
"//tensorflow/core/kernels/fuzzing:fuzz_session",
# Needed only to transitiviely link dependencies
"//tensorflow/cc:scope",
"//tensorflow/core:core_cpu",
],
)

View File

@ -76,5 +76,6 @@ def tf_fuzz_target(
deps = deps, # TODO(mihaimaruseac): fuzzing lib?
data = data, # TODO(mihaimaruseac): dict, corpus, parsers??
tags = tags, # TODO(mihaimaruseac): fuzzing tags?
linkstatic = 1,
**kwargs
)