blob: 9c14dde29c4e8327f4bee1c44583b8069303167c [file]
# 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_binary.gni")
import("//build/rust/rustc_test.gni")
import("//build/test/test_package.gni")
rustc_test("collections_integration_test_bin") {
name = "collections_integration_test"
edition = "2018"
source_root = "integration_test.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/sys/component_manager/tests:test_utils_lib",
"//third_party/rust_crates:anyhow",
]
}
rustc_binary("collection_realm_bin") {
name = "collection_realm"
edition = "2018"
source_root = "collection_realm.rs"
deps = [
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.component:fuchsia.component-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
rustc_binary("trigger_bin") {
name = "trigger"
edition = "2018"
source_root = "trigger.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.component:fuchsia.component-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}
test_package("collections_integration_test") {
deps = [
":collection_realm_bin",
":collections_integration_test_bin",
":trigger_bin",
"//examples/components/routing/echo_client",
"//examples/components/routing/echo_server",
]
meta = [
{
path = rebase_path("//examples/components/routing/meta/echo_server.cml")
dest = "echo_server.cm"
},
{
path = rebase_path("meta/trigger_a.cml")
dest = "trigger_a.cm"
},
{
path = rebase_path("meta/trigger_b.cml")
dest = "trigger_b.cm"
},
{
path = rebase_path("meta/trigger_realm.cml")
dest = "trigger_realm.cm"
},
{
path = rebase_path("meta/collection_realm.cml")
dest = "collection_realm.cm"
},
]
binaries = [
{
name = "echo_server"
},
{
name = "trigger"
},
{
name = "collection_realm"
},
]
tests = [
{
name = "collections_integration_test"
},
]
}