| # Copyright 2019 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/rust/rustc_library.gni") |
| import("//build/rust/rustc_test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_library("hub_report_capability") { |
| name = "hub_report_capability" |
| edition = "2018" |
| source_root = "hub_report_capability.rs" |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/sys/component_manager/testing:test_utils_lib", |
| "//src/sys/component_manager/tests/fidl:hub-rustc", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "hub_report_capability.rs" ] |
| } |
| |
| rustc_test("hub_integration_test_bin") { |
| name = "hub_integration_test" |
| edition = "2018" |
| source_root = "hub_integration_test.rs" |
| deps = [ |
| ":hub_report_capability", |
| "//examples/components/routing/fidl:echo-rustc", |
| "//garnet/lib/rust/io_util", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/sys/component_manager/testing:test_utils_lib", |
| "//src/sys/component_manager/tests/fidl:hub-rustc", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "hub_integration_test.rs" ] |
| } |
| |
| test_package("hub_integration_test") { |
| deps = [ |
| ":hub_integration_test_bin", |
| "components:advanced_routing_reporter_bin", |
| "components:dynamic_child_reporter_bin", |
| "components:simple_component_bin", |
| "components:visibility_reporter_bin", |
| "//examples/components/routing/echo_server", |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path( |
| "//examples/components/routing/echo_server/meta/echo_server.cml") |
| dest = "echo_server.cm" |
| }, |
| { |
| path = rebase_path("components/advanced_routing/meta/reporter.cml") |
| dest = "advanced_routing_reporter.cm" |
| }, |
| { |
| path = rebase_path("components/advanced_routing/meta/echo_realm.cml") |
| dest = "advanced_routing_echo_realm.cm" |
| }, |
| { |
| path = rebase_path("components/dynamic_child/meta/reporter.cml") |
| dest = "dynamic_child_reporter.cm" |
| }, |
| { |
| path = rebase_path("components/simple_component/meta/simple.cml") |
| dest = "simple.cm" |
| }, |
| { |
| path = rebase_path("components/visibility/meta/reporter.cml") |
| dest = "visibility_reporter.cm" |
| }, |
| { |
| path = rebase_path("components/visibility/meta/child.cml") |
| dest = "child.cm" |
| }, |
| { |
| path = rebase_path("components/visibility/meta/grandchild.cml") |
| dest = "grandchild.cm" |
| }, |
| ] |
| |
| binaries = [ |
| { |
| name = "echo_server" |
| }, |
| { |
| name = "dynamic_child_reporter" |
| }, |
| { |
| name = "advanced_routing_reporter" |
| }, |
| { |
| name = "simple" |
| }, |
| { |
| name = "visibility_reporter" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "hub_integration_test" |
| }, |
| ] |
| } |