blob: 64f0fa1bc086351669aec9d947768b22238ea89b [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_binary.gni")
rustc_binary("actor-bin") {
testonly = true
name = "actor"
edition = "2018"
source_root = "actor/main.rs"
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//src/lib/diagnostics/reader",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/sys/test_runners/stress_test/actor",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:tracing",
]
sources = [ "actor/main.rs" ]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
fuchsia_component("actor") {
testonly = true
manifest = "meta/actor.cml"
deps = [ ":actor-bin" ]
}
fuchsia_component("test") {
testonly = true
manifest = "meta/test.cml"
}
fuchsia_test_package("archivist-stress-test") {
deps = [
":actor",
"//src/diagnostics/archivist:archivist-for-embedding-bundle",
]
test_components = [ ":test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
environments = [
{
dimensions = {
device_type = "QEMU"
}
tags = [ "stress-tests" ]
},
]
}
}
group("stress-test") {
testonly = true
deps = [ ":archivist-stress-test" ]
}