blob: 9ebe6954237ac63d52f2b24c0ba49560a111a727 [file] [log] [blame]
# Copyright 2023 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("//build/compiled_action.gni")
import("//build/host.gni")
import("//build/rust/rustc_binary.gni")
import("//build/testing/golden_files.gni")
rustc_test("ffx_help_json") {
edition = "2024"
testonly = true
sources = [ "src/lib.rs" ]
data_deps = [ "//src/developer/ffx:suite_test_data" ]
deps = [
"//src/developer/ffx/command:lib",
"//src/developer/ffx/testing:ffx_testing",
"//src/lib/fuchsia",
"//src/lib/testing/fixture",
"//third_party/rust_crates:serde_json",
# This test depends on self-test subtool to be present.
# Since sub-test is an actual test, it is not included by
# default in the FFxSuite of external tools, so explicitly
# depend on it here.
"//src/developer/ffx/plugins/self-test:ffx_selftest_tool_test_data",
]
}
group("tests") {
testonly = true
deps = []
# TODO(b/302523315): Refactor ffx_testing so it can be used with other CPUs and without an image.
if (is_host && target_cpu == "x64" && has_board) {
deps += [ ":ffx_help_json" ]
}
}