blob: df8073cb896cf7e1aef5b776e2e2518da89d730a [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/components.gni")
import("//build/rust/rustc_library.gni")
import("//src/storage/testing/isolated_devmgr.gni")
rustc_library("fs_management") {
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.io.admin:fuchsia.io.admin-rustc",
"//src/lib/cstr",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-runtime",
"//src/lib/isolated_devmgr/v2_component/rust:isolated-driver-manager",
"//src/lib/storage/ramdevice_client",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/lib/zircon/rust:fuchsia-zircon-status",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:thiserror",
]
data_deps = [
"//src/storage/bin/blobfs",
"//src/storage/bin/factoryfs",
"//src/storage/bin/minfs",
]
sources = [ "src/lib.rs" ]
}
storage_isolated_devmgr_unittest_v2_component(
"fs-management-rust-tests-component") {
component_name = "fs-management-rust-tests"
deps = [ ":fs_management_test" ]
}
fuchsia_test_package("fs-management-rust-tests") {
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
test_components = [ ":fs-management-rust-tests-component" ]
deps = [ "//src/storage/testing:isolated-devmgr-component" ]
}
group("tests") {
testonly = true
deps = [ ":fs-management-rust-tests" ]
}