blob: 8b15c417ffab6417b960da700fbe3fb9b765b157 [file] [log] [blame]
# Copyright 2021 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("tests_bin") {
edition = "2021"
output_name = "bt_rfcomm_integration_tests"
source_root = "src/main.rs"
deps = [
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust",
"//src/connectivity/bluetooth/lib/bt-rfcomm",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/profile-client",
"//src/connectivity/bluetooth/testing/mock-piconet-server:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component-test",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [ "src/main.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_test_component("bt_rfcomm_integration_tests") {
manifest = "meta/bt-rfcomm-integration-tests.cml"
deps = [ ":tests_bin" ]
}
fuchsia_test_package("bt-rfcomm-integration-tests") {
test_components = [ ":bt_rfcomm_integration_tests" ]
test_specs = {
# The profile integration tests tend to flake if tests are run in parallel.
parallel = 1
}
deps = [
# The RFCOMM v2 component.
"//src/connectivity/bluetooth/profiles/bt-rfcomm:component",
# Mock Piconet Server component.
"//src/connectivity/bluetooth/testing/mock-piconet-server:component",
]
}
group("tests") {
testonly = true
deps = [ ":bt-rfcomm-integration-tests" ]
}