blob: b5f414286fa8597fe2ad5675d76843a8457acea9 [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.
import("//build/components.gni")
import("//build/test.gni")
group("test") {
testonly = true
deps = [ ":minfs-allocator-unit" ]
}
test("minfs-allocator-unit") {
sources = [ "allocator_test.cc" ]
deps = [
"//sdk/fidl/fuchsia.minfs:fuchsia.minfs_c",
"//src/lib/fxl/test:gtest_main",
"//src/lib/storage/block_client/cpp",
"//src/storage/minfs",
"//third_party/googletest:gtest",
"//zircon/system/ulib/bitmap",
]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}
fuchsia_unittest_component("minfs-allocator-test") {
deps = [ ":minfs-allocator-unit" ]
}
fuchsia_test_package("minfs-allocator-tests") {
test_components = [ ":minfs-allocator-test" ]
}