| # 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/package.gni") |
| import("//build/rust/rustc_test.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_test("driver") { |
| name = "system_updater_v2_test" |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc", |
| "//sdk/fidl/fuchsia.space:fuchsia.space-rustc", |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-runtime", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/pkg/bin/amber:cobalt_sw_delivery_registry_rustlib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:pretty_assertions", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_derive", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:tempfile", |
| "//zircon/system/fidl/fuchsia-cobalt:fuchsia-cobalt-rustc", |
| "//zircon/system/fidl/fuchsia-device-manager:fuchsia-device-manager-rustc", |
| "//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc", |
| "//zircon/system/fidl/fuchsia-logger:fuchsia-logger-rustc", |
| "//zircon/system/fidl/fuchsia-mem:fuchsia-mem-rustc", |
| "//zircon/system/fidl/fuchsia-paver:fuchsia-paver-rustc", |
| ] |
| } |
| |
| test_package("system-updater-integration-tests") { |
| deps = [ |
| ":driver", |
| "//garnet/go/src/grand_unified_binary", |
| ] |
| |
| binaries = [ |
| { |
| name = "system_updater" |
| source = "grand_unified_binary" |
| }, |
| ] |
| |
| resources = [ |
| { |
| path = rebase_path("//src/sys/pkg/bin/amber/system_updater/images") |
| dest = "images" |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path( |
| "//src/sys/pkg/bin/amber/system_updater/meta/system_updater_isolated.cmx") |
| dest = "system_updater_isolated.cmx" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "system_updater_v2_test" |
| dest = "system-updater-v2-test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":system-updater-integration-tests" ] |
| } |