| # 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("pkg_from_framework_bin") { |
| name = "pkg_from_framework" |
| edition = "2024" |
| source_root = "pkg_from_framework.rs" |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-component-test", |
| "//src/lib/fuchsia-fs", |
| "//src/sys/lib/cm_rust", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "pkg_from_framework.rs" ] |
| } |
| |
| fuchsia_unittest_component("pkg_from_framework_test_component") { |
| component_name = "pkg_from_framework_test" |
| deps = [ ":pkg_from_framework_bin" ] |
| } |
| |
| resource("example_config") { |
| sources = [ "example_config.txt" ] |
| outputs = [ "data/example_config" ] |
| } |
| |
| fuchsia_test_package("pkg_from_framework_test") { |
| test_components = [ ":pkg_from_framework_test_component" ] |
| deps = [ |
| ":example_config", |
| "//src/sys/component_manager:component-manager-realm-builder-cmp", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":pkg_from_framework_test" ] |
| } |