| # 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") |
| import("//build/testing/environments.gni") |
| |
| rustc_test("test_driver") { |
| name = "system_update_committer_integration_test" |
| edition = "2021" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_rust", |
| "//sdk/fidl/fuchsia.paver:fuchsia.paver_rust", |
| "//sdk/fidl/fuchsia.update:fuchsia.update_rust", |
| "//src/lib/diagnostics/hierarchy/rust", |
| "//src/lib/diagnostics/reader/rust", |
| "//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/fuchsia-sync", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/pkg/fidl/fuchsia.update.verify:fuchsia.update.verify_rust", |
| "//src/sys/pkg/testing/mock-paver", |
| "//src/sys/pkg/testing/mock-reboot", |
| "//src/sys/pkg/testing/mock-verifier:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| configs += [ "//build/config/rust/lints:clippy_warn_all" ] |
| } |
| |
| fuchsia_test_component("system-update-committer-integration-test") { |
| manifest = "meta/system-update-committer-integration-test.cml" |
| deps = [ ":test_driver" ] |
| visibility = [ ":*" ] |
| } |
| |
| fuchsia_test_package("package") { |
| package_name = "system-update-committer-integration-tests" |
| test_components = [ ":system-update-committer-integration-test" ] |
| deps = [ "//src/sys/pkg/bin/system-update-committer:component" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":package" ] |
| } |