| # 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_library.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_library("fs-management") { |
| with_unit_tests = true |
| edition = "2018" |
| deps = [ |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-runtime", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//src/lib/cstr", |
| "//src/storage/ramdevice-client", |
| "//third_party/rust_crates:failure", |
| "//zircon/public/fidl/fuchsia-io:fuchsia-io-rustc", |
| ] |
| } |
| |
| generate_manifest("fs-management.manifest") { |
| visibility = [ ":*" ] |
| args = [ "--binary=bin/blobfs" ] |
| } |
| |
| manifest_outputs = get_target_outputs(":fs-management.manifest") |
| fs_management_manifests = [ manifest_outputs[0] ] |
| |
| test_package("fs-management-test") { |
| extra = fs_management_manifests |
| deps = [ |
| ":fs-management.manifest", |
| ":fs-management_test", |
| ] |
| tests = [ |
| { |
| name = "fs_management_lib_test" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":fs-management-test", |
| ] |
| } |