blob: 82b59a78a8b1c7125eac877d4778ec782582b3d9 [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/rust/rustc_test.gni")
import("//build/testing/environments.gni")
import("//src/sys/build/components.gni")
rustc_test("test_driver") {
name = "system_update_committer_integration_test"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.logger:fuchsia.logger-rustc",
"//sdk/fidl/fuchsia.paver:fuchsia.paver-rustc",
"//sdk/fidl/fuchsia.update:fuchsia.update-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/pkg/testing/mock-paver",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:matches",
]
sources = [ "src/lib.rs" ]
}
fuchsia_component("system-update-committer") {
manifest = "meta/system-update-committer.cmx"
deps = [ "//src/sys/pkg/bin/system-update-committer:bin" ]
testonly = true
}
fuchsia_component("system-update-committer-integration-test") {
manifest = "meta/system-update-committer-integration-test.cmx"
deps = [ ":test_driver" ]
testonly = true
visibility = [ ":*" ]
}
fuchsia_test_package("package") {
package_name = "system-update-committer-integration-tests"
test_components = [ ":system-update-committer-integration-test" ]
deps = [ ":system-update-committer" ]
}
group("tests") {
testonly = true
public_deps = [ ":package" ]
}