| # Copyright 2022 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("dynamic_offers_bin") { |
| name = "dynamic_offers" |
| edition = "2021" |
| source_root = "integration_test.rs" |
| deps = [ |
| "//examples/components/routing/fidl:echo_rust", |
| "//sdk/fidl/fuchsia.component:fuchsia.component_rust", |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//src/lib/fuchsia-fs", |
| "//src/sys/lib/cm_rust", |
| "//src/sys/lib/cm_types", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "integration_test.rs" ] |
| } |
| |
| fuchsia_unittest_component("dynamic_offers_test_component") { |
| component_name = "dynamic_offers_test" |
| deps = [ ":dynamic_offers_bin" ] |
| } |
| |
| fuchsia_test_package("dyn_offers_test") { |
| test_components = [ ":dynamic_offers_test_component" ] |
| deps = [ "//src/sys/component_manager:component-manager-realm-builder-cmp" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":dyn_offers_test" ] |
| } |