| # Copyright 2025 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_library.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":reloaddriver_nested_composite_test" ] |
| } |
| |
| group("drivers") { |
| testonly = true |
| deps = [ |
| "drivers:component_composite_a", |
| "drivers:component_composite_b", |
| "drivers:component_root", |
| "drivers:component_top_b", |
| ] |
| } |
| |
| rustc_test("bin") { |
| edition = "2021" |
| testonly = true |
| output_name = "reloaddriver_nested_composite_bin" |
| source_root = "test.rs" |
| sources = [ "test.rs" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.driver.development:fuchsia.driver.development_rust", |
| "//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_rust", |
| "//sdk/lib/driver_test_realm/realm_builder/rust", |
| "//sdk/rust/zx", |
| "//src/devices/tests/v2/reload-driver:reloadtest_tools", |
| "//src/devices/tests/v2/reload-driver/fidl:fuchsia.reloaddriver.test_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| } |
| |
| fuchsia_unittest_package("reloaddriver_nested_composite_test") { |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| deps = [ |
| ":bin", |
| ":drivers", |
| "//sdk/lib/driver_test_realm:driver_test_realm_component", |
| ] |
| } |