blob: 446071be36713b1827b44c4199ce96b4868acfd1 [file] [log] [blame]
# 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/components.gni")
import("//build/rust/rustc_test.gni")
rustc_test("bt_le_integration_tests") {
edition = "2021"
source_root = "src/lib.rs"
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth_rust",
"//sdk/fidl/fuchsia.bluetooth.le:fuchsia.bluetooth.le_rust",
"//sdk/fidl/fuchsia.bluetooth.test:fuchsia.bluetooth.test_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/testing/bt-test-harness",
"//src/connectivity/bluetooth/testing/test-harness",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [
"src/central.rs",
"src/lib.rs",
"src/peripheral.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_test_component("bt-le-integration-tests-component") {
manifest = "meta/bt-le-integration-tests.cml"
deps = [ ":bt_le_integration_tests" ]
}
fuchsia_test_package("bt-le-integration-tests") {
test_components = [ ":bt-le-integration-tests-component" ]
}