| # 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_test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_test("bin") { |
| name = "component_manager_for_test_integration_test" |
| edition = "2018" |
| source_root = "src/main.rs" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", |
| "//sdk/fidl/fuchsia.test:fuchsia.test-rustc", |
| "//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//third_party/rust_crates:anyhow", |
| ] |
| } |
| |
| test_package("component_manager_for_test_integration_test") { |
| deps = [ |
| ":bin", |
| "//examples/tests:passing-test-example", |
| "//src/sys/component_manager_for_test:bin", |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("//examples/tests/meta/passing-test-example.cml") |
| dest = "passing-test-example.cm" |
| }, |
| { |
| path = rebase_path( |
| "//src/sys/component_manager_for_test/meta/component_manager_for_test.cmx") |
| dest = "component_manager_for_test.cmx" |
| }, |
| ] |
| |
| binaries = [ |
| { |
| name = "passing-test-example" |
| }, |
| { |
| name = "component_manager_for_test_bin" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "component_manager_for_test_integration_test" |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":component_manager_for_test_integration_test", |
| "//src/sys/component_manager_for_test", |
| ] |
| } |