blob: 5a9404abad4444b03bf3bcad7626fc1f0b94c6aa [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")
import("//build/testing/environments.gni")
rustc_test("test_driver") {
name = "system_update_committer_integration_test"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.paver:fuchsia.paver-rustc",
"//sdk/fidl/fuchsia.update:fuchsia.update-rustc",
"//src/lib/diagnostics/hierarchy/rust",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/diagnostics/reader/rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//src/lib/fuchsia-fs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/pkg/fidl/fuchsia.update.verify:fuchsia.update.verify-rustc",
"//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:hex",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
]
sources = [ "src/lib.rs" ]
}
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" ]
}