| # Copyright 2021 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") |
| |
| rustc_test("driver") { |
| name = "password_authenticator_integration_test" |
| edition = "2021" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_rust", |
| "//sdk/fidl/fuchsia.hardware.block.partition:fuchsia.hardware.block.partition_rust", |
| "//sdk/fidl/fuchsia.identity.account:fuchsia.identity.account_rust", |
| "//sdk/fidl/fuchsia.identity.credential:fuchsia.identity.credential_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.tpm.cr50:fuchsia.tpm.cr50_rust", |
| "//sdk/lib/driver_test_realm/realm_builder/rust", |
| "//src/identity/tests/ramdisk_common", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:parking_lot", |
| ] |
| |
| source_root = "src/account_manager.rs" |
| sources = [ |
| "src/account_manager.rs", |
| "src/mock_cr50_agent.rs", |
| "src/pinweaver.rs", |
| "src/scrypt.rs", |
| ] |
| |
| # For fvm_init() |
| non_rust_deps = [ "//src/lib/storage/fs_management/c" ] |
| } |
| |
| fuchsia_component("password-authenticator-integration-test") { |
| testonly = true |
| manifest = "meta/password-authenticator-integration-test.cml" |
| deps = [ |
| ":driver", |
| "//src/devices/bus/drivers/platform", |
| "//src/storage/testing:storage_drivers", |
| ] |
| } |
| |
| fuchsia_test_package("password-authenticator-integration-tests") { |
| # isolated devmgr sometimes logs at error level when its processes are torn |
| # down in unlucky orders, and there's no way to tear them down |
| # deterministically, so I guess we tolerate ERROR level log messages |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| |
| test_components = [ ":password-authenticator-integration-test" ] |
| deps = [ |
| ":password-authenticator-integration-test", |
| "//src/identity/bin/password_authenticator:component", |
| "//src/identity/bin/password_authenticator:integration_test_config", |
| "//src/security/bin/credential_manager:component", |
| "//src/storage/bin/minfs", |
| ] |
| } |
| |
| group("password_authenticator_integration") { |
| testonly = true |
| public_deps = [ ":password-authenticator-integration-tests" ] |
| } |