| # 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/rust/rustc_test.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_test("driver") { |
| name = "omaha_client_integration_test" |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger-rustc", |
| "//sdk/fidl/fuchsia.paver:fuchsia.paver-rustc", |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc", |
| "//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket-rustc", |
| "//sdk/fidl/fuchsia.update:fuchsia.update-rustc", |
| "//sdk/fidl/fuchsia.update.channelcontrol:fuchsia.update.channelcontrol-rustc", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/inspect/rust/fuchsia-inspect", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/pkg/lib/fuchsia-pkg-testing", |
| "//src/sys/pkg/testing/mock-omaha-server", |
| "//src/sys/pkg/testing/mock-resolver", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:matches", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:tempfile", |
| ] |
| } |
| |
| test_package("omaha-client-integration-tests") { |
| deps = [ |
| ":driver", |
| "//src/sys/pkg/bin/omaha-client:bin", |
| ] |
| |
| binaries = [ |
| { |
| name = "omaha_client_service" |
| dest = "omaha-client-service" |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path( |
| "//src/sys/pkg/bin/omaha-client/meta/omaha-client-service-for-integration-test.cmx") |
| dest = "omaha-client-service-for-integration-test.cmx" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "omaha_client_integration_test" |
| dest = "omaha-client-integration-test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":omaha-client-integration-tests" ] |
| } |