blob: 34fe9261aa2650d7be7b51571759a45fc6af97bc [file]
# Copyright 2022 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")
fuchsia_package("lib_loader_runner_cache") {
testonly = true
visibility = [
":*",
"//bundles/assembly/*",
"//sdk/ctf/*",
"//src/sys/test_manager:*",
]
deps = [ ":lib_loader_runner_cache_cmp" ]
}
# Kept in GN because bazel2gn does not convert fx_unittest_package() targets
# with resources.
fuchsia_unittest_package("lib_loader_runner_cache_unit_tests") {
package_name = "lib_loader_runner_cache_unit_tests-gn"
component_name = "lib_loader_runner_cache_unit_tests"
deps = [
":bin_test",
"//src/sys/lib/library_loader:config_test_bar_baz",
"//src/sys/lib/library_loader:config_test_foo",
]
}
group("tests") {
testonly = true
deps = [ ":lib_loader_runner_cache_unit_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_binary("bin") {
testonly = true
sources = [
"src/loader_cache.rs",
"src/main.rs",
]
configs += [ "//build/config/rust:bootfs" ]
output_name = "lib_loader_runner_cache"
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/lib/library_loader",
"//src/sys/test_runners/fidl/fuchsia.test.runner:fuchsia.test.runner_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
}
if (is_fuchsia) {
rustc_test("bin_test") {
sources = [
"src/loader_cache.rs",
"src/main.rs",
]
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/lib/library_loader",
"//src/sys/test_runners/fidl/fuchsia.test.runner:fuchsia.test.runner_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
] +
[
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:assert_matches",
]
source_root = "src/main.rs"
configs += [ "//build/config/rust:bootfs" ]
output_name = "lib_loader_runner_cache_bin_test"
}
}
fuchsia_component_manifest("lib_loader_runner_cache_cmp-manifest") {
testonly = true
component_name = "lib_loader_runner_cache"
manifest = "meta/lib_loader_runner_cache.cml"
}
fuchsia_component("lib_loader_runner_cache_cmp") {
testonly = true
cm_label = ":lib_loader_runner_cache_cmp-manifest"
visibility = [
":*",
"//src/sys/test_manager:*",
"//src/sys/test_runners/*",
]
deps = [ ":bin" ]
}