blob: cc41f3f2b3c71b7bbb6589f6dd4d292b344b7cf1 [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.
group("tests") {
testonly = true
deps = [ ":unittests-pkg" ]
}
## 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")
rustc_binary("bin") {
sources = [
"src/diagnostics.rs",
"src/events.rs",
"src/fuzzer.rs",
"src/main.rs",
"src/manager.rs",
"src/test_support.rs",
]
output_name = "fuzz_manager"
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
visibility = [ ":*" ]
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/fuzzing/fidl:fuchsia.fuzzer_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:url",
]
}
fuchsia_component_manifest("manifest") {
testonly = true
component_name = "fuzz-manager"
manifest = "meta/fuzz-manager.cml"
}
fuchsia_component("manager") {
testonly = true
cm_label = ":manifest"
visibility = [
":*",
"//src/sys/fuzzing:*",
"//src/sys/test_runners/fuzz/tests:*",
]
deps = [ ":bin" ]
}
if (is_fuchsia) {
rustc_test("bin_test") {
sources = [
"src/diagnostics.rs",
"src/events.rs",
"src/fuzzer.rs",
"src/main.rs",
"src/manager.rs",
"src/test_support.rs",
]
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/fuzzing/fidl:fuchsia.fuzzer_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:url",
] + [ "//sdk/fidl/fuchsia.mem:fuchsia.mem_rust" ]
source_root = "src/main.rs"
output_name = "fuzz_manager_bin_test"
}
}
fuchsia_component_manifest("unittests-manifest") {
testonly = true
component_name = "unittests"
manifest = "meta/unittests.cml"
}
fuchsia_test_component("unittests-component") {
cm_label = ":unittests-manifest"
visibility = [ ":*" ]
deps = [ ":bin_test" ]
}
fuchsia_test_package("unittests-pkg") {
package_name = "fuzz-manager-unittests-gn"
test_components = [ ":unittests-component" ]
}