| # 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("//build/testing/bootfs_test.gni") |
| |
| test("blobfs-bench") { |
| output_name = "blobfs-bench-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 = [ "blobfs-bench.cc" ] |
| deps = [ |
| "//sdk/lib/fdio", |
| "//src/lib/digest", |
| "//src/lib/storage/fs_management", |
| "//src/lib/storage/vfs/cpp", |
| "//src/storage/blobfs", |
| "//src/storage/fvm", |
| "//src/storage/gpt", |
| "//src/storage/memfs", |
| "//src/storage/memfs:memfs-cpp", |
| "//third_party/boringssl", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fs-test-utils", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/perftest", |
| "//zircon/system/ulib/ramdevice-client", |
| "//zircon/system/ulib/trace", |
| "//zircon/system/ulib/trace-engine", |
| "//zircon/system/ulib/trace-provider:trace-provider-with-fdio", |
| "//zircon/system/ulib/unittest", |
| ] |
| } |
| |
| bootfs_test("blobfs-bench-bootfs-test") { |
| name = "blobfs-bench-test" |
| deps = [ ":blobfs-bench" ] |
| } |