blob: 5413aea9dd8cfaa44395f0cf22d8076862cab4f9 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/fuzzing/fuzzer.gni")
import("//build/fuzzing/fuzzer_package.gni")
group("fuzzers") {
testonly = true
deps = [ ":tests" ]
}
# This target is the same as the one above; whether fuzzers or unit tests are built depends on which
# toolchain variant is active. Typically, you should include fuzzers in your package's tests.
group("tests") {
testonly = true
deps = [
":fuzzing-examples",
"rust:toy-example",
]
}
fuzzer_package("fuzzing-examples") {
# Packages can have non-default names.
package_name = "example-fuzzers"
# Fuzzers are defined for each supported language
cpp_fuzzers = [
"cpp:crash_fuzzer",
"cpp:overflow_fuzzer",
"cpp:corpus_fuzzer",
"cpp:corpus_fuzzer_without_corpus",
"cpp:dictionary_fuzzer",
"cpp:dictionary_fuzzer_without_dictionary",
"cpp:fuzzed_data_provider_fuzzer",
"cpp:noop_fuzzer",
"cpp:out_of_memory_fuzzer",
"fidl:echo-fuzzer",
]
# A fuzzers package can have fuzzers for multiple languages.
rust_fuzzers = [
"rust:toy_example_arbitrary",
"rust:toy_example_raw_bytes",
"rust:toy_example_with_main",
]
deps = [ "zx" ]
}