| # 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/test.gni") |
| import("//src/storage/testing/driver_test_realm.gni") |
| |
| visibility = [ "./*" ] |
| |
| executable("minfs") { |
| sources = [ "main.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.process.lifecycle:fuchsia.process.lifecycle_cpp_wire", |
| "//sdk/lib/fdio", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/scheduler/cpp", |
| "//src/storage/minfs", |
| "//zircon/system/ulib/zx", |
| ] |
| } |
| |
| fuchsia_component("minfs-component") { |
| visibility += [ "*" ] |
| manifest = "meta/minfs.cml" |
| component_name = "minfs" |
| deps = [ ":minfs" ] |
| } |
| |
| group("minfs-test-component") { |
| visibility += [ "*" ] |
| deps = [ |
| ":minfs-component", |
| "//src/storage/lib/fs_management:fs_management_shard", |
| ] |
| } |
| |
| test("minfs_component_test") { |
| sources = [ "minfs_test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.component:fuchsia.component_cpp_wire", |
| "//sdk/fidl/fuchsia.fs:fuchsia.fs_cpp_wire", |
| "//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_cpp_wire", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_cpp_wire", |
| "//sdk/lib/component/incoming/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/storage/fidl/fuchsia.fs.startup:fuchsia.fs.startup_cpp_wire", |
| "//src/storage/testing:storage_driver_test_support", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_component("minfs-component-test-component") { |
| testonly = true |
| manifest = "meta/minfs_component_test.cml" |
| deps = [ |
| ":minfs_component_test", |
| "//src/storage/testing:storage_driver_test_realm", |
| ] |
| } |
| |
| fuchsia_test_package("minfs-component-tests") { |
| test_components = [ ":minfs-component-test-component" ] |
| deps = [ ":minfs-component" ] |
| } |
| |
| group("tests") { |
| visibility += [ "*" ] |
| testonly = true |
| deps = [ ":minfs-component-tests" ] |
| } |