blob: 6f538a3552d7bc1c36d53e44df664463da0817b0 [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("cs_integration_test_bin") {
name = "cs_integration_test"
edition = "2018"
source_root = "cs_integration_test.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/tools/cs:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:regex",
]
sources = [ "cs_integration_test.rs" ]
}
test_package("cs-tests") {
deps = [
":cs_integration_test_bin",
"indef_echo_client",
"//examples/components/routing/echo_server",
]
meta = [
{
path = rebase_path(
"//examples/components/routing/echo_server/meta/echo_server.cml")
dest = "echo_server.cm"
},
{
path = rebase_path("indef_echo_client/meta/indef_echo_client.cml")
dest = "indef_echo_client.cm"
},
{
path = rebase_path("meta/echo_realm.cml")
dest = "echo_realm.cm"
},
{
path = rebase_path("meta/empty.cml")
dest = "empty.cm"
},
{
path = rebase_path("meta/tree/root.cml")
dest = "root.cm"
},
{
path = rebase_path("meta/tree/foo.cml")
dest = "foo.cm"
},
{
path = rebase_path("meta/tree/bar.cml")
dest = "bar.cm"
},
{
path = rebase_path("meta/tree/baz.cml")
dest = "baz.cm"
},
]
binaries = [
{
name = "indef_echo_client"
},
{
name = "echo_server"
},
]
tests = [
{
name = "cs_integration_test"
},
]
}