| # 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/test.gni") |
| import("//src/lib/isolated_devmgr/isolated_devmgr.gni") |
| import("//src/sys/build/components.gni") |
| |
| test("fs-management") { |
| configs += [ |
| "//build/unification/config:zircon-migrated", |
| "//build/config:all_source", |
| ] |
| sources = [ |
| "admin_test.cc", |
| "fs_management_test.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_llcpp", |
| "//sdk/lib/fdio", |
| "//src/lib/digest", |
| "//src/lib/storage/fs_management", |
| "//src/lib/storage/vfs/cpp", |
| "//src/storage/fvm", |
| "//src/storage/gpt", |
| "//src/storage/memfs", |
| "//src/storage/memfs:memfs-cpp", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/fs-test-utils", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/perftest", |
| "//zircon/system/ulib/trace", |
| "//zircon/system/ulib/trace-engine", |
| ] |
| data_deps = [ |
| "//src/storage/bin/blobfs", |
| "//src/storage/bin/minfs", |
| "//src/storage/bin/minfs", |
| "//src/storage/blobfs", |
| "//zircon/third_party/uapp/fsck-msdosfs", |
| "//zircon/third_party/uapp/mkfs-msdosfs", |
| ] |
| |
| # TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated. |
| # Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>). |
| # See linked bug for details. |
| configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ] |
| } |
| |
| isolated_devmgr_component("fs-management-devmgr") { |
| args = [ |
| "--svc_name=fuchsia.test.IsolatedDevmgr", |
| "--load_driver=/boot/driver/ramdisk.so", |
| "--search_driver=/boot/driver", |
| "--search_driver=/boot/driver/test", |
| "--wait_for=misc/ramctl", |
| ] |
| |
| deps = [ |
| "//src/devices/block/drivers/core", |
| "//src/devices/block/drivers/ramdisk", |
| "//src/devices/misc/drivers/test", |
| "//src/devices/tests/sysdev", |
| "//src/storage/fvm/driver", |
| ] |
| } |
| |
| fuchsia_component("fs-management-test") { |
| testonly = true |
| manifest = "meta/fs-management-test.cmx" |
| deps = [ |
| ":fs-management", |
| ":fs-management-devmgr", |
| ] |
| } |
| |
| fuchsia_test_package("fs-management-test-package") { |
| test_components = [ ":fs-management-test" ] |
| test_specs = { |
| log_settings = { |
| # Required due to no access to Cobalt for minfs |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fs-management-test-package" ] |
| } |