blob: 7b8c9f5bb41b5412f4d69396e586e292de715fe7 [file] [log] [blame]
# Copyright 2020 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")
import("//build/testing/environments.gni")
group("component_events") {
testonly = true
deps = [ ":component_events_integration_tests" ]
}
test_package("component_events_integration_tests") {
deps = [
":component_events_test",
":observer_integration_test",
":test_component",
]
tests = [
{
name = "component_events_integration_test"
environments = basic_envs
},
{
name = "observer_integration_test"
environments = basic_envs
},
]
binaries = [
{
name = "test_component"
},
]
meta = [
{
path = "meta/test_component.cmx"
dest = "test_component.cmx"
},
]
}
rustc_test("component_events_test") {
name = "component_events_integration_test"
source_root = "./component_events_integration_test.rs"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.inspect:fuchsia.inspect-rustc",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//sdk/fidl/fuchsia.sys.internal:fuchsia.sys.internal-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:regex",
]
}
rustc_test("observer_integration_test") {
name = "observer_integration_test"
source_root = "./observer_integration_test.rs"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//sdk/fidl/fuchsia.sys.internal:fuchsia.sys.internal-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
]
}
rustc_binary("test_component") {
name = "test_component"
source_root = "./test_component.rs"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}