blob: 95f8d4555ee3d4cd1bbfc7c0f6db2faf7b8211e7 [file] [log] [blame]
# Copyright 2021 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_test.gni")
rustc_test("bin") {
name = "echo_server_test"
edition = "2018"
source_root = "src/echo_server_test.rs"
sources = [ "src/echo_server_test.rs" ]
deps = [
# Change COMPONENT_FIDL_BUILD_TARGET to fidl target being tested
# ex: "//examples/components/routing/fidl:echo-rustc",
{COMPONENT_FIDL_BUILD_TARGET},
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}
fuchsia_component("echo_server_test") {
testonly = true
manifest = "meta/echo_server_test.cml"
deps = [ ":bin" ]
}
fuchsia_test_package("integration_test_pkg") {
package_name = "echo_server_test"
test_components = [ ":echo_server_test" ]
deps = [
":echo_server_test",
# Change COMPONENT_BUILD_TARGET to component targets the test use
# ex: "//examples/components/routing/echo_server:echo_server_component",
{COMPONENT_BUILD_TARGET},
]
}
group("tests") {
testonly = true
public_deps = [":integration_test_pkg"]
}