blob: e4fee4af88447ab70064ae233e3bd2db27fc9bbf [file] [log] [blame] [edit]
# 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/build/ffx_plugin.gni")
import("//src/developer/ffx/build/ffx_tool.gni")
ffx_plugin("ffx_selftest") {
sdk_category = "not-yet-specified"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
args_sources = [ "src/args.rs" ]
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
sources = [
"src/component.rs",
"src/config.rs",
"src/daemon.rs",
"src/experiment.rs",
"src/lib.rs",
"src/log.rs",
"src/target.rs",
"src/test/asserts.rs",
"src/test/mod.rs",
]
plugin_deps = [ "experiment:ffx_selftest_experiment" ]
deps = [
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/executor:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/isolate:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:termion",
]
}
ffx_tool("ffx_selftest_tool") {
edition = "2024"
output_name = "ffx-self-test"
deps = [
":ffx_selftest_suite",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
}