blob: c3260be20d2362452e1682e2534625cb4b0ea29e [file] [log] [blame]
# 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/rust/rustc_test.gni")
import("//src/sys/build/components.gni")
rustc_test("driver") {
name = "system_update_checker_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",
"//sdk/fidl/fuchsia.update.channel:fuchsia.update.channel-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/pkg/lib/fidl-fuchsia-update-ext",
"//src/sys/pkg/lib/fidl-fuchsia-update-installer-ext",
"//src/sys/pkg/lib/fuchsia-pkg-testing",
"//src/sys/pkg/testing/mock-installer",
"//src/sys/pkg/testing/mock-paver",
"//src/sys/pkg/testing/mock-resolver",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:tempfile",
]
sources = [ "src/lib.rs" ]
}
fuchsia_component("system-update-checker-integration-test") {
testonly = true
manifest = "meta/system-update-checker-integration-test.cmx"
deps = [ ":driver" ]
}
fuchsia_test_package("system-update-checker-integration-tests") {
test_components = [ ":system-update-checker-integration-test" ]
deps = [
"//src/sys/pkg/bin/system-update-checker:system-update-checker-for-integration-test",
"//src/sys/pkg/tests/system-update-committer",
]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
public_deps = [ ":system-update-checker-integration-tests" ]
}