| # 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. | |
| assert(is_host, "testing_lib is for use with the host toolchain only") | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":lib_test" ] | |
| } | |
| group("testing") { | |
| testonly = true | |
| deps = [ | |
| ":lib", | |
| ":tests", | |
| ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| rustc_library("lib") { | |
| sources = [ | |
| "src/fake_rcs.rs", | |
| "src/lib.rs", | |
| ] | |
| crate_name = "testing_lib" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/component/*", | |
| "//src/developer/ffx/plugins/inspect/*", | |
| "//src/developer/ffx/plugins/log/*", | |
| "//src/developer/ffx/plugins/target/*", | |
| "//src/developer/ffx/plugins/test/*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain_flex", | |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust_fdomain_flex", | |
| "//src/developer/ffx/lib/rcs:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/diagnostics/iquery/test_support:iquery_test_support", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fuchsia-async", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("lib_test") { | |
| sources = [ | |
| "src/fake_rcs.rs", | |
| "src/lib.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain_flex", | |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust_fdomain_flex", | |
| "//src/developer/ffx/lib/rcs:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/diagnostics/iquery/test_support:iquery_test_support", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fuchsia-async", | |
| ] | |
| output_name = "testing_lib_lib_test" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| ] | |
| } | |
| } |