blob: 6bfd3efbab36e616259a5b39966bbbfb708b9ce8 [file]
# Copyright 2021 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/components.gni")
# The fuzz test runner shard used by this manifest has no Bazel target.
fuchsia_test_component("fuzzer") {
manifest = "meta/fuzzer.cml"
deps = [ ":fuzzer-bin" ]
}
# A standalone package containing a fake fuzzer. The normal fuzzing tools, e.g.
# `ffx fuzz`, should work with the package produced.
fuchsia_test_package("fuzzer-pkg") {
package_name = "fake-fuzzer"
test_components = [ ":fuzzer" ]
test_specs = {
build_rule = "fuchsia_fuzzer_package"
}
deps = [ "//src/sys/fuzzing" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_fuchsia) {
source_set("testing") {
testonly = true
sources = [
"artifact.cc",
"component-context.cc",
"corpus-reader.cc",
"module.cc",
"monitor.cc",
"registrar.cc",
"runner.cc",
]
public = [
"artifact.h",
"async-test.h",
"component-context.h",
"corpus-reader.h",
"module.h",
"monitor.h",
"registrar.h",
"runner.h",
]
deps = [
"//sdk/lib/async",
"//sdk/lib/syslog/cpp",
]
visibility = [
":*",
"//src/sys/*",
]
public_deps = [
"//sdk/testing/fidl:test_support",
"//src/sys/fuzzing/common",
"//third_party/googletest:gtest",
"//zircon/system/ulib/sync",
]
}
}
if (is_fuchsia) {
source_set("sanitizer") {
testonly = true
sources = [ "sanitizer.cc" ]
public = [ "sanitizer.h" ]
deps = [
":testing",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl",
"//src/sys/fuzzing/common",
]
visibility = [
":*",
"//src/sys/fuzzing/libfuzzer/testing:*",
"//src/sys/fuzzing/libfuzzer/tests:*",
"//src/sys/fuzzing/realmfuzzer/tests:*",
]
}
}
executable("echo") {
testonly = true
sources = [ "echo.cc" ]
output_name = "fuzzing_echo_for_test"
visibility = [
":*",
"//src/sys/fuzzing/*",
]
}
if (is_fuchsia) {
executable("fuzzer-bin") {
testonly = true
sources = [ "engine-main.cc" ]
output_name = "fake_fuzzer_for_testing"
visibility = [
":*",
"//src/sys/fuzzing/registry/tests:*",
]
deps = [
":testing",
"//src/lib/fxl",
"//src/sys/fuzzing/fidl:fuchsia.fuzzer_hlcpp",
]
}
}