| # 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("$zx/public/gn/fuzzer.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ |
| ":blobfs-integration", |
| ":blobfs-large-integration", |
| ":blobfs-unit", |
| ":zstd-fuzzer", |
| ] |
| } |
| |
| zx_test("blobfs-unit") { |
| test_group = "fs" |
| sources = [ |
| "unit/allocated-extent-iterator-test.cc", |
| "unit/allocator-test.cc", |
| "unit/blob-cache-test.cc", |
| "unit/blobfs-test.cc", |
| "unit/compressor-test.cc", |
| "unit/create-tests.cc", |
| "unit/extent-reserver-test.cc", |
| "unit/format-test.cc", |
| "unit/get-allocated-regions-test.cc", |
| "unit/mount_test.cc", |
| "unit/node-populator-test.cc", |
| "unit/node-reserver-test.cc", |
| "unit/utils.cc", |
| "unit/vector-extent-iterator-test.cc", |
| ] |
| deps = [ |
| "$zx/system/fidl/fuchsia-blobfs:c", |
| "$zx/system/ulib/async-loop", |
| "$zx/system/ulib/async-loop:async-loop-cpp", |
| "$zx/system/ulib/async-loop:async-loop-default.static", |
| "$zx/system/ulib/blobfs", |
| "$zx/system/ulib/block-client:fake-device", |
| "$zx/system/ulib/fidl-utils", |
| "$zx/system/ulib/fs-management", |
| "$zx/system/ulib/fs-test-utils", |
| "$zx/system/ulib/id_allocator", |
| "$zx/system/ulib/storage/buffer", |
| "$zx/system/ulib/storage/operation", |
| "$zx/system/ulib/sync", |
| "$zx/system/ulib/zxtest", |
| "$zx/third_party/ulib/cksum", |
| "$zx/third_party/ulib/lz4", |
| "$zx/third_party/ulib/safemath", |
| "$zx/third_party/ulib/zstd", |
| ] |
| |
| include_dirs = [ ".." ] |
| } |
| |
| zx_test("blobfs-host") { |
| sources = [ |
| "host/host-test.cc", |
| ] |
| deps = [ |
| "$zx/system/ulib/blobfs", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |
| |
| source_set("integration-fixtures") { |
| testonly = true |
| sources = [ |
| "integration/blobfs_fixtures.cc", |
| ] |
| deps = [ |
| "$zx/system/ulib/blobfs", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fs-test-utils", |
| "$zx/system/ulib/fs/test_support", |
| "$zx/system/ulib/fvm", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |
| |
| zx_test("blobfs-integration") { |
| test_group = "fs" |
| sources = [ |
| "integration/blobfs_integration_test.cc", |
| "integration/integration_main.cc", |
| "integration/superblock-test.cc", |
| ] |
| deps = [ |
| ":integration-fixtures", |
| "$zx/system/fidl/fuchsia-blobfs:c", |
| "$zx/system/ulib/async-loop", |
| "$zx/system/ulib/async-loop:async-loop-default.static", |
| "$zx/system/ulib/blobfs", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fs-test-utils", |
| "$zx/system/ulib/fs/test_support", |
| "$zx/system/ulib/fvm", |
| "$zx/system/ulib/fzl", |
| "$zx/system/ulib/memfs", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zx", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |
| |
| zx_test("blobfs-large-integration") { |
| test_group = "fs" |
| sources = [ |
| "integration/large_integration_main.cc", |
| "integration/large_integration_test.cc", |
| ] |
| deps = [ |
| ":integration-fixtures", |
| "$zx/system/fidl/fuchsia-sysinfo:llcpp", |
| "$zx/system/ulib/async-loop", |
| "$zx/system/ulib/async-loop:async-loop-default.static", |
| "$zx/system/ulib/blobfs", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fs-test-utils", |
| "$zx/system/ulib/fs/test_support", |
| "$zx/system/ulib/fvm", |
| "$zx/system/ulib/memfs", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zxtest", |
| ] |
| } |
| |
| fuzzer("zstd-fuzzer") { |
| sources = [ |
| "zstd-fuzzer.cc", |
| ] |
| deps = [ |
| "$zx/system/ulib/blobfs", |
| "$zx/third_party/ulib/lz4", |
| "$zx/third_party/ulib/zstd", |
| ] |
| include_dirs = [ ".." ] |
| } |
| |
| fuzzer("lz4-fuzzer") { |
| sources = [ |
| "zstd-fuzzer.cc", |
| ] |
| deps = [ |
| "$zx/system/ulib/blobfs", |
| "$zx/third_party/ulib/lz4", |
| "$zx/third_party/ulib/zstd", |
| ] |
| include_dirs = [ ".." ] |
| } |