blob: a53be8e98307f0ab02e35f57c736905bba51aef4 [file] [log] [blame] [edit]
# 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/components.gni")
# To run the crasher, either
# * fx shell crasher
# * fx shell run fuchsia-pkg://fuchsia.com/crasher#meta/cpp_crasher.cmx
# * fx shell run fuchsia-pkg://fuchsia.com/crasher#meta/rust_crasher.cmx
# * ffx component run --recreate /core/ffx-laboratory:cpp_crasher fuchsia-pkg://fuchsia.com/crasher#meta/cpp_crasher.cm
# * ffx component run --recreate /core/ffx-laboratory:rust_crasher fuchsia-pkg://fuchsia.com/crasher#meta/rust_crasher.cm
# * ffx test run fuchsia-pkg://fuchsia.com/crasher_test#meta/cpp_crasher_test.cm
# * ffx test run fuchsia-pkg://fuchsia.com/crasher_test#meta/rust_crasher_test.cm
#
# A kernel crash can be triggered by `k crash*` commands.
fuchsia_package("crasher") {
deps = [
"//src/developer/forensics/crasher/cpp:crasher_v1",
"//src/developer/forensics/crasher/cpp:crasher_v2",
"//src/developer/forensics/crasher/rust:crasher_v2",
]
}
fuchsia_unittest_package("crasher_test") {
deps = [
"//src/developer/forensics/crasher/cpp:cpp_crasher_test",
"//src/developer/forensics/crasher/rust:rust_crasher_test",
]
# Never run these tests on build bots as by construction they would be crashing and reported as
# failures.
test_specs = {
environments = []
}
}