blob: 6d3597d079df47e90979acc52a5c692fb93729dc [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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_test("driver") {
name = "mark_active_configuration_healthy_test"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.logger:fuchsia.logger-rustc",
"//sdk/fidl/fuchsia.paver:fuchsia.paver-rustc",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/pkg/testing/mock-paver",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/lib.rs" ]
}
rustc_binary("mark-active-configuration-healthy") {
name = "mark_active_configuration_healthy"
edition = "2018"
source_root = "src/mark_active_configuration_healthy.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/sys/pkg/lib/system-health-check",
]
sources = [ "src/mark_active_configuration_healthy.rs" ]
}
test_package("mark-active-configuration-healthy-tests") {
deps = [
":driver",
":mark-active-configuration-healthy",
]
binaries = [
{
name = "mark_active_configuration_healthy"
dest = "mark-active-configuration-healthy"
},
]
meta = [
{
path = "meta/mark-active-configuration-healthy.cmx"
dest = "mark-active-configuration-healthy.cmx"
},
]
tests = [
{
name = "mark_active_configuration_healthy_test"
dest = "mark-active-configuration-healthy-test"
environments = basic_envs
log_settings = {
max_severity = "ERROR"
}
},
]
}