| # 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("//build/package.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_test("tests_bin") { |
| name = "test_harness_crate_tests" |
| edition = "2018" |
| source_root = "src/lib.rs" |
| |
| deps = [ |
| "//src/connectivity/bluetooth/lib/test-harness", |
| "//third_party/rust_crates:anyhow", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_component("test_harness_crate_tests") { |
| testonly = true |
| manifest = "meta/test-harness-crate-tests.cmx" |
| deps = [ ":tests_bin" ] |
| } |
| |
| fuchsia_test_package("test-harness-crate-tests") { |
| test_components = [ ":test_harness_crate_tests" ] |
| } |