blob: efc787c65095916b3e0f09be3c6d14c1a1d837c7 [file] [log] [blame]
# Copyright 2021 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("tests") {
testonly = true
deps = [ ":blobfs-compression-tests" ]
}
test("blobfs-compression-test") {
sources = [ "blobfs-compression-test.cc" ]
deps = [
"//src/lib/chunked-compression",
"//src/lib/digest",
"//src/lib/fxl/test:gtest_main",
"//src/storage/blobfs/compression/configs",
"//src/storage/tools/blobfs-compression:common",
"//zircon/system/ulib/fbl",
]
}
fuchsia_unittest_component("blobfs-compression-tests-component") {
deps = [ ":blobfs-compression-test" ]
}
test("cli-option-validation-test") {
sources = [ "cli-option-validation-test.cc" ]
deps = [
"//src/lib/chunked-compression",
"//src/lib/fxl/test:gtest_main",
"//src/storage/fs_test",
"//src/storage/memfs/test:memfs_fs_test",
"//src/storage/tools/blobfs-compression:common",
"//zircon/system/ulib/async-loop",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/id_allocator",
]
# 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("cli-option-validation-tests-component") {
deps = [ ":cli-option-validation-test" ]
}
fuchsia_test_package("blobfs-compression-tests") {
test_components = [
":blobfs-compression-tests-component",
":cli-option-validation-tests-component",
]
}