blob: 0d2d52e39583fbd73765e162829cd002c395af75 [file]
# Copyright 2019 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-pkg-testing-tests` stays in GN because it uses
# `//src/connectivity/network/dns:package`,
# `//src/connectivity/network/netstack3:package-for-tests`, and
# `//src/storage/tools/blobfs-compression`, which have no Bazel build yet.
fuchsia_unittest_package("fuchsia-pkg-testing-tests") {
manifest = "meta/fuchsia-pkg-testing-tests.cml"
deps = [
":fuchsia-pkg-testing_test",
"//src/storage/tools/blobfs-compression",
]
subpackages = [
"//src/connectivity/network/dns:package",
"//src/connectivity/network/netstack3:package-for-tests",
]
}
group("tests") {
testonly = true
public_deps = [ ":fuchsia-pkg-testing-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("fuchsia-pkg-testing") {
testonly = true
sources = [
"src/blobfs.rs",
"src/inspect.rs",
"src/lib.rs",
"src/package.rs",
"src/repo.rs",
"src/serve.rs",
"src/serve/responder.rs",
"src/system_image.rs",
"src/update_package.rs",
]
inputs = [
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/test.fuchsia.com.certchain",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/test.fuchsia.com.rsa",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/wildcard.fuchsia-updates.googleusercontent.com.certchain",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/wildcard.fuchsia-updates.googleusercontent.com.rsa",
]
edition = "2024"
lint_config = "//build/config/rust/lints:clippy_warn_all"
visibility = [
":*",
"//src/recovery/system:*",
"//src/storage/benchmarks/fuchsia:*",
"//src/sys/component_manager:*",
"//src/sys/pkg/*",
"//vendor/google/*",
]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/diagnostics/hierarchy/rust",
"//src/lib/diagnostics/reader/rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-hyper",
"//src/lib/fuchsia-sync",
"//src/lib/fuchsia-url",
"//src/lib/http-sse:http_sse",
"//src/lib/versioning/version-history/rust",
"//src/storage/fxfs/fidl/fuchsia.fxfs:fuchsia.fxfs_rust",
"//src/storage/lib/delivery_blob",
"//src/sys/lib/fidl-fuchsia-pkg-ext",
"//src/sys/pkg/lib/blobfs",
"//src/sys/pkg/lib/epoch",
"//src/sys/pkg/lib/far/rust:fuchsia-archive",
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-merkle",
"//src/sys/pkg/lib/fuchsia-pkg",
"//src/sys/pkg/lib/fuchsia-repo",
"//src/sys/pkg/lib/system-image",
"//src/sys/pkg/lib/update-package",
"//src/sys/pkg/testing/blobfs-ramdisk",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:http",
"//third_party/rust_crates:http-body-util",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:hyper-util",
"//third_party/rust_crates:log",
"//third_party/rust_crates:maybe-owned",
"//third_party/rust_crates:rustls",
"//third_party/rust_crates:rustls-pemfile",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:sha2",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:tokio-rustls",
"//third_party/rust_crates:tuf",
"//third_party/rust_crates:walkdir",
]
}
rustc_test("fuchsia-pkg-testing_test") {
sources = [
"src/blobfs.rs",
"src/inspect.rs",
"src/lib.rs",
"src/package.rs",
"src/repo.rs",
"src/serve.rs",
"src/serve/responder.rs",
"src/system_image.rs",
"src/update_package.rs",
]
inputs = [
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/test.fuchsia.com.certchain",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/test.fuchsia.com.rsa",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/wildcard.fuchsia-updates.googleusercontent.com.certchain",
"//src/sys/pkg/lib/fuchsia-pkg-testing/certs/wildcard.fuchsia-updates.googleusercontent.com.rsa",
]
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/diagnostics/hierarchy/rust",
"//src/lib/diagnostics/reader/rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-hyper",
"//src/lib/fuchsia-sync",
"//src/lib/fuchsia-url",
"//src/lib/http-sse:http_sse",
"//src/lib/versioning/version-history/rust",
"//src/storage/fxfs/fidl/fuchsia.fxfs:fuchsia.fxfs_rust",
"//src/storage/lib/delivery_blob",
"//src/sys/lib/fidl-fuchsia-pkg-ext",
"//src/sys/pkg/lib/blobfs",
"//src/sys/pkg/lib/epoch",
"//src/sys/pkg/lib/far/rust:fuchsia-archive",
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-merkle",
"//src/sys/pkg/lib/fuchsia-pkg",
"//src/sys/pkg/lib/fuchsia-repo",
"//src/sys/pkg/lib/system-image",
"//src/sys/pkg/lib/update-package",
"//src/sys/pkg/testing/blobfs-ramdisk",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:http",
"//third_party/rust_crates:http-body-util",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:hyper-util",
"//third_party/rust_crates:log",
"//third_party/rust_crates:maybe-owned",
"//third_party/rust_crates:rustls",
"//third_party/rust_crates:rustls-pemfile",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:sha2",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:tokio-rustls",
"//third_party/rust_crates:tuf",
"//third_party/rust_crates:walkdir",
] +
[
"//src/lib/fuchsia",
"//third_party/rust_crates:assert_matches",
]
output_name = "fuchsia_pkg_testing_lib_test"
lint_config = "//build/config/rust/lints:clippy_warn_all"
}