blob: 6933803b35a26c300818d0f7d8e7686ad5a610b9 [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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxbug.dev/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
group("tests") {
testonly = true
deps = [ ":block-client-unit-test-pkg" ]
}
test("block-client-unit-test") {
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [
"block-group-registry-tests.cc",
"fake-block-device-test.cc",
"remote-block-device-test.cc",
]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_c",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/async-loop",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/block-client",
"//zircon/system/ulib/block-client:fake-device",
"//zircon/system/ulib/fidl-utils",
"//zircon/system/ulib/fvm",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/range",
"//zircon/system/ulib/storage-metrics",
]
}
fuchsia_unittest_package("block-client-unit-test-pkg") {
package_name = "block-client-unit-test"
executable_path = "test/block-client-unit-test"
deps = [ ":block-client-unit-test" ]
}