blob: 95593f32cc591761785a88005d0bd025a7f1fd3a [file] [log] [blame] [edit]
# 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")
import("//build/rust/rustc_test.gni")
rustc_test("driver") {
name = "base_resolver_integration_test"
edition = "2018"
source_root = "src/lib.rs"
sources = [ "src/lib.rs" ]
deps = [
"//garnet/lib/rust/files_async",
"//sdk/fidl/fuchsia.boot:fuchsia.boot-rustc",
"//sdk/fidl/fuchsia.component.resolution:fuchsia.component.resolution-rustc",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//src/lib/storage/vfs/rust:vfs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/pkg/lib/fuchsia-hash",
"//src/sys/pkg/lib/fuchsia-pkg-testing",
"//src/sys/pkg/lib/system-image",
"//src/sys/pkg/testing/blobfs-ramdisk",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
]
}
fuchsia_component("component") {
testonly = true
manifest = "meta/base-resolver-integration-test.cml"
deps = [
":driver",
"//src/storage/bin/blobfs",
"//src/storage/testing:storage_driver_test_realm",
"//src/sys/base-resolver/tests:base-resolver-component-for-integration-test",
"//src/sys/pkg/bin/pkg-cache:component",
"//src/sys/pkg/bin/pm:pm_bin",
]
}
fuchsia_test_package("package") {
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
package_name = "base-resolver-integration-tests"
test_components = [ ":component" ]
}
group("tests") {
testonly = true
public_deps = [ ":package" ]
}