| # 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("//build/rust/rustc_library.gni") |
| |
| assert(is_host, "testing_lib is for use with the host toolchain only") |
| |
| rustc_library("lib") { |
| name = "testing_lib" |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| |
| visibility = [ |
| ":*", |
| "//src/developer/ffx/plugins/test/*", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust", |
| "//src/developer/ffx/lib/rcs:lib", |
| "//third_party/rust_crates:anyhow", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":lib_test" ] |
| } |
| |
| group("testing") { |
| testonly = true |
| |
| deps = [ |
| ":lib", |
| ":tests", |
| ] |
| } |