| # Copyright 2024 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 = [ ":exit_code_integration_test_package" ] | |
| } | |
| ## 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") | |
| executable("exit_with_code") { | |
| sources = [ "exit_with_code.cc" ] | |
| visibility = [ | |
| ":*", | |
| "//src/sys/lib/elf_runner:*", | |
| ] | |
| deps = [ "//src/lib/fxl" ] | |
| } | |
| executable("exit_with_code_from_env") { | |
| sources = [ "exit_with_code_from_env.cc" ] | |
| visibility = [ | |
| ":*", | |
| "//src/sys/lib/elf_runner:*", | |
| ] | |
| deps = [ "//src/lib/fxl" ] | |
| } | |
| rustc_test("exit_code_integration_test_bin") { | |
| sources = [ "integration_test.rs" ] | |
| output_name = "exit_code_integration_test" | |
| source_root = "integration_test.rs" | |
| edition = "2024" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.component:fuchsia.component_rust", | |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", | |
| "//sdk/fidl/fuchsia.data:fuchsia.data_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-component-test", | |
| "//src/sys/lib/cm_rust", | |
| "//src/sys/lib/component-events", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:test-case", | |
| ] | |
| } | |
| fuchsia_component_manifest("test_root-manifest") { | |
| testonly = true | |
| component_name = "test_root" | |
| manifest = "meta/test_root.cml" | |
| } | |
| fuchsia_component("test_root") { | |
| testonly = true | |
| cm_label = ":test_root-manifest" | |
| } | |
| fuchsia_component_manifest("exit_code_integration_test-manifest") { | |
| testonly = true | |
| component_name = "exit_code_integration_test" | |
| manifest = "meta/exit_code_integration_test.cml" | |
| } | |
| fuchsia_test_component("exit_code_integration_test_component") { | |
| cm_label = ":exit_code_integration_test-manifest" | |
| deps = [ | |
| ":exit_code_integration_test_bin", | |
| ":exit_with_code", | |
| ] | |
| } | |
| fuchsia_test_package("exit_code_integration_test_package") { | |
| package_name = "exit_code_integration_test-gn" | |
| test_components = [ ":exit_code_integration_test_component" ] | |
| deps = [ | |
| ":test_root", | |
| "//src/lib/fuchsia-component-test/realm_builder_server:realm_builder_server_component", | |
| "//src/sys/component_manager:component-manager-realm-builder-debug-cmp", | |
| ] | |
| } |