| # Copyright 2022 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/config.gni") | |
| # The list of tools under this directory | |
| _tools = [ | |
| "//src/developer/ffx/plugins/assembly", | |
| "//src/developer/ffx/plugins/audio", | |
| "//src/developer/ffx/plugins/component", | |
| "//src/developer/ffx/plugins/coverage", | |
| "//src/developer/ffx/plugins/debug", | |
| "//src/developer/ffx/plugins/emulator", | |
| "//src/developer/ffx/plugins/forward", | |
| "//src/developer/ffx/plugins/fuzz", | |
| "//src/developer/ffx/plugins/inspect", | |
| "//src/developer/ffx/plugins/log", | |
| "//src/developer/ffx/plugins/package", | |
| "//src/developer/ffx/plugins/profile", | |
| "//src/developer/ffx/plugins/product", | |
| "//src/developer/ffx/plugins/product_bundle", | |
| "//src/developer/ffx/plugins/process", | |
| "//src/developer/ffx/plugins/repository", | |
| "//src/developer/ffx/plugins/scrutiny", | |
| "//src/developer/ffx/plugins/session", | |
| "//src/developer/ffx/plugins/setui", | |
| "//src/developer/ffx/plugins/test", | |
| "//src/developer/ffx/plugins/trace", | |
| "//src/developer/ffx/plugins/wlan", | |
| "auth", | |
| "bluetooth", | |
| "driver", | |
| "echo", | |
| "efi", | |
| "gce", | |
| "monitor", | |
| "power", | |
| "profiler", | |
| "speedtest", | |
| "starnix", | |
| "storage", | |
| "triage", | |
| "uart", | |
| "uart_driver", | |
| "usb", | |
| "usb_driver", | |
| "wm", | |
| "verify-ssh-keys", | |
| ] | |
| group("tools") { | |
| # Dual-mode plugins are built as host tools that ffx can invoke. | |
| public_deps = _tools + dual_mode_subtools # from config.gni | |
| } | |
| group("bins") { | |
| public_deps = [] | |
| foreach(tool, _tools) { | |
| public_deps += [ "$tool:bin" ] | |
| } | |
| public_deps += dual_mode_subtool_bins # from config.gni | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [] | |
| # Tools whose unit tests have been migrated to Bazel (in | |
| # //src/developer/ffx:tests). | |
| _bazel_tested_tools = [ | |
| "//src/developer/ffx/plugins/assembly", | |
| "//src/developer/ffx/plugins/coverage", | |
| "//src/developer/ffx/plugins/forward", | |
| "//src/developer/ffx/plugins/fuzz", | |
| "//src/developer/ffx/plugins/session", | |
| "//src/developer/ffx/plugins/test", | |
| "//src/developer/ffx/plugins/trace", | |
| "//src/developer/ffx/plugins/wlan", | |
| "echo", | |
| "efi", | |
| "monitor", | |
| "storage", | |
| "triage", | |
| "uart", | |
| "uart_driver", | |
| ] | |
| foreach(tool, _tools - _bazel_tested_tools) { | |
| deps += [ "$tool:tests" ] | |
| } | |
| # Playground is experimental so it's not in _tools but we still want to run | |
| # the tests. | |
| deps += [ "playground:tests" ] | |
| deps += dual_mode_subtool_tests # from config.gni | |
| } | |
| group("host_tests") { | |
| testonly = true | |
| deps = [ "power:host_tests" ] | |
| } |