blob: ae61ead42f7167f5f98d7842467db328080e1986 [file]
# Copyright 2020 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("//src/developer/ffx/lib/e2e_emu/ffx_e2e_test.gni")
group("tests") {
testonly = true
deps = [
":ffx_target_ssh_args_test($host_toolchain)",
":ffx_target_ssh_test($host_toolchain)",
]
}
group("host_tests") {
testonly = true
deps = [ ":ffx_target_ssh_e2e_tests($host_toolchain)" ]
}
if (is_host) {
# ffx_e2e_test depends on //src/developer/ffx/lib/e2e_emu, which is GN-only.
ffx_e2e_test("ffx_target_ssh_e2e_tests") {
edition = "2024"
source_root = "tests/e2e.rs"
sources = [ source_root ]
deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:pretty_assertions",
]
}
}
## 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")
ffx_plugin("ffx_target_ssh") {
sources = [ "src/lib.rs" ]
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
args_sources = [ "src/args.rs" ]
edition = "2024"
sdk_category = "not-yet-specified"
version = "0.1.0"
visibility = [
":*",
"//src/developer/ffx/plugins/target:*",
]
deps = [
"//src/developer/ffx/command:lib",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/addr:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:tokio",
]
}
if (is_host) {
rustc_test("ffx_target_ssh_args_test") {
sources = [ "src/args.rs" ]
edition = "2024"
source_root = "src/args.rs"
deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
visibility = [
":*",
"//src/developer/ffx:*",
]
}
}
if (is_host) {
rustc_test("ffx_target_ssh_test") {
sources = [ "src/lib.rs" ]
edition = "2024"
deps = [
":ffx_target_ssh_args",
"//src/developer/ffx/command:lib",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/addr:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:tokio",
] +
[
"//src/lib/fuchsia",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:serde_json",
]
visibility = [
":*",
"//src/developer/ffx:*",
]
}
}