| # 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/components.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| rustc_test("integration_test_bin") { |
| name = "component_hub_integration_test" |
| edition = "2018" |
| deps = [ |
| "//src/lib/component_hub", |
| "//src/lib/fuchsia-async", |
| "//src/sys/lib/moniker", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_component("test") { |
| testonly = true |
| manifest = "meta/test.cml" |
| deps = [ ":integration_test_bin" ] |
| } |
| |
| fuchsia_component("foo") { |
| testonly = true |
| manifest = "meta/foo.cml" |
| } |
| |
| fuchsia_test_package("component_hub_integration_tests") { |
| test_components = [ ":test" ] |
| deps = [ ":foo" ] |
| } |