blob: ee8160bddf579b03fe5d5aaf115ea7e361837a58 [file]
# Copyright 2026 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.
load(
"//build/bazel/rules/components:fx_component.bzl",
"fx_component_manifest",
"fx_test_component",
)
load("//build/bazel/rules/packages:fx_package.bzl", "fx_package")
load(
"//build/bazel/rules/packages:fx_packaged_binary.bzl",
"fx_packaged_binary",
)
load("//build/bazel/rules/rust:rustc_test.bzl", "rustc_test")
load("//build/bazel/rules/testing:fx_test.bzl", "fx_test")
package(default_applicable_licenses = ["//:license"])
test_suite(
name = "tests",
tests = [":fdomain-connection-test_test"],
visibility = ["//src/developer:__pkg__"],
)
# test-parity-allow-manual: Inner test binary wrapped by :fdomain-connection-test_test.
rustc_test(
name = "fdomain-connection-test-bin",
srcs = ["src/lib.rs"],
edition = "2024",
tags = ["manual"],
target_compatible_with = ["@platforms//os:fuchsia"],
deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain",
"//sdk/rust/zx-status-ext",
"//src/developer/remote-control/fidl:fuchsia.developer.remotecontrol.connector_rust",
"//src/lib/fdomain/client",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates/vendor:futures",
],
)
fx_packaged_binary(
name = "fdomain-connection-test-bin_packaged",
testonly = True,
binary = ":fdomain-connection-test-bin",
binary_name = "fdomain_connection_test_bin",
)
fx_component_manifest(
name = "fdomain-connection-test-manifest",
testonly = True,
component_name = "fdomain-connection-test",
includes = [
"//sdk/lib/syslog:client.shard",
"//src/sys/test_runners/rust:default.shard.cml",
],
manifest = "meta/fdomain-connection-test.cml",
)
fx_test_component(
name = "fdomain-connection-test-component",
compiled_manifest = ":fdomain-connection-test-manifest",
test_type = "system",
deps = [":fdomain-connection-test-bin_packaged"],
)
fx_package(
name = "fdomain-connection-test",
test_components = [":fdomain-connection-test-component"],
)
fx_test(
name = "fdomain-connection-test_test",
package = ":fdomain-connection-test",
)