blob: cc0cce227e0094bcbadc2dc8c3cc3195b8e36c6e [file] [log] [blame]
# Copyright 2020 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")
executable("blobfs-corrupt") {
sources = [ "main.cc" ]
deps = [
":common",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/digest",
"//src/storage/blobfs",
"//src/storage/lib/block_client/cpp",
"//zircon/system/ulib/fbl",
]
}
executable("blobfs-corrupt-test") {
testonly = true
output_name = "blobfs-corrupt-test"
sources = [ "test/corrupt_blob_test.cc" ]
include_dirs = [ "." ]
deps = [
":common",
"//src/lib/digest",
"//src/storage/blobfs",
"//src/storage/lib/block_client/cpp:fake_device",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zxtest",
]
}
source_set("common") {
sources = [
"corrupt_blob.cc",
"fs_block_client.cc",
]
deps = [
"//sdk/lib/syslog/cpp",
"//src/lib/digest",
"//src/storage/blobfs",
"//src/storage/lib/block_client/cpp",
"//zircon/system/ulib/fbl",
]
}
fuchsia_unittest_package("blobfs-corrupt-tests") {
deps = [ ":blobfs-corrupt-test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
deps = [ ":blobfs-corrupt-tests" ]
}