blob: 10b7786680f6fed9bc544088a687312386595b7a [file] [log] [blame]
# Copyright 2020 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 = "pkg_local_mirror_integration_test"
edition = "2018"
deps = [
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.io2:fuchsia.io2-rustc",
"//sdk/fidl/fuchsia.logger:fuchsia.logger-rustc",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//src/lib/fuchsia-url",
"//src/lib/storage/vfs/rust:vfs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/lib/fidl-fuchsia-pkg-ext",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:parking_lot",
]
sources = [
"src/get_blob.rs",
"src/get_metadata.rs",
"src/lib.rs",
]
}
fuchsia_component("driver-component") {
testonly = true
component_name = "pkg-local-mirror-integration-test"
manifest = "meta/pkg-local-mirror-integration-test.cml"
deps = [ ":driver" ]
}
fuchsia_test_package("pkg-local-mirror-integration-tests") {
test_components = [ ":driver-component" ]
deps = [ "//src/sys/pkg/bin/pkg-local-mirror" ]
}
group("tests") {
testonly = true
public_deps = [ ":pkg-local-mirror-integration-tests" ]
}