blob: 37fc5cc158eb7ac92bac06fcdcce000e3bde3d56 [file] [log] [blame]
# Copyright 2023 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/component/config.gni")
import("//build/components.gni")
import("//build/fidl/fidl.gni")
import("//build/rust/rustc_binary.gni")
group("tests") {
testonly = true
deps = [ ":echo_server-test" ]
}
rustc_test("bin") {
edition = "2021"
source_root = "src/main.rs"
sources = [ source_root ]
name = "echo_server_test"
deps = [
"testing/fidl:test.echoserver_rust",
"//examples/components/routing/fidl:echo_rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/testing/realm_client/rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:tracing",
]
}
fuchsia_component("test-suite-component") {
testonly = true
component_name = "test-suite"
manifest = "meta/test-suite.cml"
deps = [ ":bin" ]
}
fuchsia_package("test-suite") {
testonly = true
deps = [ ":test-suite-component" ]
}
fuchsia_component("test-root") {
testonly = true
manifest = "meta/test-root.cml"
}
fuchsia_test_package("echo_server-test") {
test_components = [ ":test-root" ]
subpackages = [
"testing/realm-factory",
":test-suite",
]
}