blob: c240967a6f4b8b3c178103ae5f37df7c6728a0df [file]
# Copyright 2026 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.
load("//build/bazel/rules/host_tests:host_rustc_test.bzl", "host_rustc_test")
load("//src/developer/ffx/build:ffx_plugin.bzl", "ffx_plugin")
package(default_applicable_licenses = ["//:license"])
test_suite(
name = "host_tests",
tests = [
":ffx_wait_args_test",
":ffx_wait_test",
],
visibility = ["//src/developer/ffx:__pkg__"],
)
ffx_plugin(
name = "ffx_wait",
srcs = ["src/lib.rs"],
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates/vendor:argh",
],
args_srcs = ["src/args.rs"],
edition = "2024",
sdk_category = "not-yet-specified",
version = "0.1.0",
visibility = [
"//src/developer/ffx/plugins/target:__pkg__",
"//src/developer/fuchsia-controller:__pkg__",
],
deps = [
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/diagnostics:lib",
"//src/developer/ffx/lib/diagnostics/checks:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/writer:lib",
"//third_party/rust_crates/vendor:schemars",
"//third_party/rust_crates/vendor:serde",
"//third_party/rust_crates/vendor:thiserror",
],
)
host_rustc_test(
name = "ffx_wait_args_test",
crate = ":ffx_wait_args",
visibility = ["//src/developer/ffx:__pkg__"],
)
host_rustc_test(
name = "ffx_wait_test",
crate = ":ffx_wait",
visibility = ["//src/developer/ffx:__pkg__"],
deps = [
"//src/developer/ffx/config:lib",
"//src/lib/fuchsia",
"//third_party/rust_crates/vendor:argh",
"//third_party/rust_crates/vendor:mockall",
"//third_party/rust_crates/vendor:serde_json",
],
)