| # 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") | |
| import("//build/testing/environments.gni") | |
| fuchsia_component("pkg-cache-integration-test") { | |
| testonly = true | |
| manifest = "meta/pkg-cache-integration-test.cml" | |
| deps = [ | |
| ":driver", | |
| "//src/storage/fxfs:fxfs_component", | |
| "//src/storage/testing:storage_driver_test_realm", | |
| ] | |
| } | |
| resource("ca.cert-resource") { | |
| sources = [ "//src/sys/pkg/lib/fuchsia-pkg-testing/certs/ca.cert" ] | |
| outputs = [ "data/ssl/cert.pem" ] | |
| } | |
| fuchsia_test_package("pkg-cache-integration-tests") { | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| test_components = [ ":pkg-cache-integration-test" ] | |
| deps = [ | |
| ":ca.cert-resource", | |
| "//src/sys/pkg/bin/pkg-cache:component", | |
| "//src/sys/pkg/bin/system-update-committer:component", | |
| # TODO(https://fxbug.dev/540501441): Serve the blobs without the rest of the TUF repo. | |
| "//src/sys/pkg/tests/pkg-resolver:empty-repo", | |
| ] | |
| subpackages = [ | |
| "//src/connectivity/network/dns:package", | |
| "//src/connectivity/network/netstack3:package-for-tests", | |
| "//src/connectivity/policy/http-client:package", | |
| ] | |
| } | |
| group("hermetic_tests") { | |
| testonly = true | |
| if (!is_coverage) { | |
| # TODO(https://fxbug.dev/42158909): Re-enable this test when this test does | |
| # not timeout. | |
| public_deps = [ ":pkg-cache-integration-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_test("driver") { | |
| sources = [ | |
| "src/base_pkg_index.rs", | |
| "src/base_resolver.rs", | |
| "src/cache_pkg_index.rs", | |
| "src/cobalt.rs", | |
| "src/driver_blob_paging.rs", | |
| "src/executability_enforcement.rs", | |
| "src/full_component_resolver.rs", | |
| "src/full_resolver.rs", | |
| "src/full_resolver_upgradable.rs", | |
| "src/get.rs", | |
| "src/inspect.rs", | |
| "src/lib.rs", | |
| "src/ota_downloader.rs", | |
| "src/ota_resolver.rs", | |
| "src/pkgfs.rs", | |
| "src/remote_resolver.rs", | |
| "src/remote_resolver_blobfs_errors.rs", | |
| "src/remote_resolver_recovers_from_http_errors.rs", | |
| "src/retained_blobs.rs", | |
| "src/retained_packages.rs", | |
| "src/space.rs", | |
| "src/sync.rs", | |
| "src/toolbox_resolver.rs", | |
| "src/write_blobs.rs", | |
| ] | |
| output_name = "pkg_cache_integration_test" | |
| edition = "2024" | |
| lint_config = "//build/config/rust/lints:clippy_warn_all" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", | |
| "//sdk/fidl/fuchsia.component.resolution:fuchsia.component.resolution_rust", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_rust", | |
| "//sdk/fidl/fuchsia.metrics:fuchsia.metrics_rust", | |
| "//sdk/fidl/fuchsia.net.name:fuchsia.net.name_rust", | |
| "//sdk/fidl/fuchsia.paver:fuchsia.paver_rust", | |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust", | |
| "//sdk/fidl/fuchsia.pkg.garbagecollector:fuchsia.pkg.garbagecollector_rust", | |
| "//sdk/fidl/fuchsia.pkg.http:fuchsia.pkg.http_rust", | |
| "//sdk/fidl/fuchsia.pkg.internal:fuchsia.pkg.internal_rust", | |
| "//sdk/fidl/fuchsia.pkg.resolution:fuchsia.pkg.resolution_rust", | |
| "//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket_rust", | |
| "//sdk/fidl/fuchsia.storage.blobfs:fuchsia.storage.blobfs_rust", | |
| "//sdk/fidl/fuchsia.storage.block:fuchsia.storage.block_rust", | |
| "//sdk/fidl/fuchsia.tracing.provider:fuchsia.tracing.provider_rust", | |
| "//sdk/fidl/fuchsia.update:fuchsia.update_rust", | |
| "//sdk/rust/zx", | |
| "//src/lib/diagnostics/hierarchy/rust:diagnostics-hierarchy", | |
| "//src/lib/diagnostics/inspect/rust", | |
| "//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component-test", | |
| "//src/lib/fuchsia-fs", | |
| "//src/lib/fuchsia-sync", | |
| "//src/storage/fidl/fuchsia.storage.mapping:fuchsia.storage.mapping_rust", | |
| "//src/storage/fxfs/fidl/fuchsia.fxfs:fuchsia.fxfs_rust", | |
| "//src/storage/lib/blob_writer:blob-writer", | |
| "//src/storage/lib/delivery_blob", | |
| "//src/storage/lib/vfs/rust:vfs", | |
| "//src/sys/lib/cm_rust", | |
| "//src/sys/lib/fidl-fuchsia-pkg-ext", | |
| "//src/sys/lib/mem_util", | |
| "//src/sys/pkg/fidl/fuchsia.update.verify:fuchsia.update.verify_rust", | |
| "//src/sys/pkg/lib/blobfs", | |
| "//src/sys/pkg/lib/fuchsia-hash", | |
| "//src/sys/pkg/lib/fuchsia-merkle", | |
| "//src/sys/pkg/lib/fuchsia-pkg", | |
| "//src/sys/pkg/lib/fuchsia-pkg-testing", | |
| "//src/sys/pkg/lib/metrics:cobalt_sw_delivery_registry_rustlib", | |
| "//src/sys/pkg/lib/system-image", | |
| "//src/sys/pkg/testing/blobfs-ramdisk", | |
| "//src/sys/pkg/testing/mock-health-verification", | |
| "//src/sys/pkg/testing/mock-metrics", | |
| "//src/sys/pkg/testing/mock-paver", | |
| "//third_party/cobalt/src/lib/client/rust:cobalt-client", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:assert_matches", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:http", | |
| "//third_party/rust_crates:rand", | |
| "//third_party/rust_crates:test-case", | |
| ] | |
| } |