blob: 09c00cafb487f5a746e4f200405fff123c20c071 [file] [log] [blame]
# 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_test") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/testing:lib",
"//src/developer/ffx/plugins/component/common:ffx_component",
"//src/lib/fidl/rust/fidl",
"//src/lib/testing/test_list",
"//src/sys/run_test_suite:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:either",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:signal-hook",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//src/lib/diagnostics/data/rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:walkdir",
]
args_deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//src/lib/diagnostics/data/rust",
"//src/lib/diagnostics/selectors",
"//third_party/rust_crates:anyhow",
]
args_sources = [ "src/args.rs" ]
sources = [
"src/connector.rs",
"src/lib.rs",
"src/suite_definition.rs",
]
config_data = [ "data/config.json" ]
}
ffx_tool("ffx_test_tool") {
edition = "2021"
output_name = "ffx-test"
deps = [
":ffx_test",
"//src/developer/ffx/lib/fho:lib",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
sdk_target_name = "sdk"
sdk_category = "partner"
}
group("test") {
public_deps = [
":ffx_test_tool",
":ffx_test_tool_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_test_tool_versioned" ]
}
group("tests") {
testonly = true
deps = [ ":ffx_test_tests($host_toolchain)" ]
}