| # 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":task-exceptions-tests" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| rustc_library("task-exceptions") { | |
| sources = [ "src/lib.rs" ] | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/devices/bin/driver-host:*", | |
| "//src/sys/lib/elf_runner:*", | |
| ] | |
| deps = [ | |
| "//sdk/rust/zx", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:futures", | |
| ] | |
| } | |
| rustc_test("task-exceptions_test") { | |
| sources = [ "src/lib.rs" ] | |
| edition = "2024" | |
| deps = [ | |
| "//sdk/rust/zx", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:futures", | |
| ] + | |
| [ | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.process:fuchsia.process_rust", | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-fs", | |
| "//src/lib/fuchsia-runtime", | |
| "//src/sys/lib/library_loader", | |
| "//third_party/rust_crates:anyhow", | |
| ] | |
| output_name = "task_exceptions_lib_test" | |
| } | |
| fuchsia_component_manifest("task-exceptions-cmp-manifest") { | |
| testonly = true | |
| component_name = "task-exceptions-tests" | |
| manifest = "meta/task-exceptions-tests.cml" | |
| } | |
| fuchsia_test_component("task-exceptions-cmp") { | |
| cm_label = ":task-exceptions-cmp-manifest" | |
| deps = [ ":task-exceptions_test" ] | |
| } | |
| fuchsia_test_package("task-exceptions-tests") { | |
| package_name = "task-exceptions-tests-gn" | |
| test_components = [ ":task-exceptions-cmp" ] | |
| deps = [ "//src/sys/component_manager/tests/crash_introspect:panic_on_start" ] | |
| } |