blob: 348e4205b330731b2a4a9edbc30c7988aa048a91 [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")
rustc_binary("stub_inspect_component") {
name = "stub_inspect_component"
edition = "2018"
source_root = "components/stub_inspect_component.rs"
deps = [
"//src/lib/diagnostics/inspect/rust",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "components/stub_inspect_component.rs" ]
}
rustc_test("integration_tests_bin") {
name = "archivist_integration_tests"
edition = "2018"
deps = [
"//src/diagnostics/lib/selectors",
"//src/lib/diagnostics/data/rust",
"//src/lib/diagnostics/hierarchy/rust",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/diagnostics/reader/rust",
"//src/lib/diagnostics/testing/rust",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/lib/stdout-to-debuglog/rust:stdout-to-debuglog",
"//src/sys/tools/cs:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "src/lib.rs" ]
}
test_package("archivist-integration-tests-v2") {
deps = [
":integration_tests_bin",
":stub_inspect_component",
"//src/diagnostics/archivist:bin",
]
binaries = [
{
name = "archivist"
},
{
name = "stub_inspect_component"
},
]
meta = [
{
path = rebase_path("meta/archivist_for_integration.cml")
dest = "archivist.cm"
},
{
path = rebase_path("meta/stub_inspect_component.cml")
dest = "stub_inspect_component.cm"
},
{
path = rebase_path("meta/driver.cml")
dest = "driver.cm"
},
]
v2_tests = [
{
name = "archivist_integration_tests"
environments = basic_envs
},
]
resources = [
{
path = rebase_path("configs/archivist_config.json")
dest = "config/archivist_config.json"
},
]
}
group("tests") {
testonly = true
deps = [ ":archivist-integration-tests-v2" ]
}