blob: 78884303f72512db1640519d3b3d56fdba4c1af0 [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")
import("//src/storage/testing/isolated_devmgr.gni")
group("tests") {
testonly = true
deps = [
":blobfs-compression-tests",
":cli-option-validation-test",
]
}
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/public/lib/fbl",
]
}
fuchsia_component("blobfs-compression-tests-component") {
component_name = "blobfs-compression-tests"
testonly = true
manifest = "meta/blobfs-compression-tests.cml"
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/tools/blobfs-compression:common",
"//zircon/public/lib/fbl",
"//zircon/system/ulib/async-loop",
"//zircon/system/ulib/id_allocator",
]
}
storage_isolated_devmgr_unittest_v2_component(
"cli-option-validation-tests-component") {
executable_path = "test/cli-option-validation-test"
deps = [ ":cli-option-validation-test" ]
}
fuchsia_test_package("blobfs-compression-tests") {
test_components = [
":blobfs-compression-tests-component",
":cli-option-validation-tests-component",
]
}