blob: bb6eff3bf65a44db1bd93de27ab72934b6ee9a68 [file] [log] [blame]
# Copyright 2018 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")
group("account_manager_integration") {
testonly = true
deps = [
":account_manager_integration_test_pkg",
":account_manager_prototype",
"//src/identity/bin/dev_auth_provider",
"//src/identity/bin/dev_authenticator",
]
}
rustc_test("test") {
name = "account_manager_integration_test"
edition = "2018"
source_root = "tests/lib.rs"
deps = [
"//sdk/fidl/fuchsia.auth:fuchsia.auth-rustc",
"//sdk/fidl/fuchsia.identity.account:fuchsia.identity.account-rustc",
"//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol-rustc",
"//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc",
"//src/identity/fidl:account-prototype-rustc",
"//src/identity/lib/account_common",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:thiserror",
]
sources = [
"tests/account.rs",
"tests/lib.rs",
"tests/prototype.rs",
]
}
test_package("account_manager_integration_test_pkg") {
deps = [ ":test" ]
tests = [
{
name = "account_manager_integration_test"
},
]
}
package("account_manager_prototype") {
# This package makes the account manager prototype functionality available
# to integration tests. This package is only available in tests and does not
# change whether or not the account manager run as a system service has the
# prototype enabled.
deps = [ "//src/identity/bin/account_manager:bin" ]
binaries = [
{
name = "account_manager"
},
]
meta = [
{
path = rebase_path(
"../../bin/account_manager/meta/account_manager_prototype.cmx")
dest = "account_manager_prototype.cmx"
},
]
}