blob: 235e1ec657c928700552747b2d3bc73a2c6db2c5 [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") {
output_name = "bt_rfcomm_integration_tests"
source_root = "src/main.rs"
deps = [
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr-rustc",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/profile-client",
"//src/connectivity/bluetooth/testing/bt-profile-test-server:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/sys/lib/fuchsia-component-test",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "src/main.rs" ]
}
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" ]
deps = [
# The RFCOMM v2 component.
"//src/connectivity/bluetooth/profiles/bt-rfcomm:component-v2",
# Profile Test Server component.
"//src/connectivity/bluetooth/testing/bt-profile-test-server",
# Fuchsia Component Test library component
"//src/lib/fuchsia-component-test/framework_intermediary:fuchsia_component_test_framework_intermediary_component",
]
}
group("tests") {
testonly = true
deps = [ ":bt-rfcomm-integration-tests" ]
}