blob: e57e2b4f9ce863eb1afb480c25d2a97edc351cae [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.hardware.bluetooth:fuchsia.hardware.bluetooth_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") {
# b/317259066 causes driver_manager ERRORs. Ignore until fixed.
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
test_components = [ ":bt-le-integration-tests-component" ]
subpackages = [ "//src/connectivity/bluetooth/core/bt-host" ]
}