blob: 2ac32f3ad8460baea0bf9b5915f0d70932165001 [file] [log] [blame]
# Copyright 2020 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("//zircon/system/ulib/devmgr-integration-test/isolated_devmgr.gni")
test("fvm-driver-integration") {
output_name = "fvm-driver-integration-test"
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [
"partition_load_test.cc",
"volume_manager_api_test.cc",
]
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_llcpp",
"//sdk/fidl/fuchsia.hardware.block.volume:fuchsia.hardware.block.volume_llcpp",
"//src/devices/testing/no_ddk",
"//src/lib/storage/fs_management",
"//src/storage/fvm/driver:shared",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/devmgr-integration-test",
"//zircon/system/ulib/devmgr-launcher",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/fvm-devices",
]
# 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_unittest_package("fvm-driver-integration-test") {
executable_path = "test/fvm-driver-integration-test"
test_specs = {
log_settings = {
# Some of the API tests deliberately test the error cases that log.
max_severity = "ERROR"
}
}
deps = [
":fvm-driver-integration",
"//src/devices/block/drivers/core",
"//src/devices/block/drivers/ramdisk",
"//src/devices/misc/drivers/test",
"//src/devices/tests/sysdev",
"//src/storage/fvm/driver",
]
}