blob: d1e2c3d6fbe92352413fa8711ae6c34c4eafca9e [file] [log] [blame]
# 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 = [
"//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/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
test_package("collections_integration_test") {
deps = [
":collections_integration_test_bin",
"//examples/components/routing/echo_client",
"//examples/components/routing/echo_server",
"//src/sys/component_manager/tests:trigger_bin",
]
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"
},
]
binaries = [
{
name = "echo_server"
},
{
name = "trigger"
},
]
v2_tests = [
{
name = "collections_integration_test"
},
]
}