blob: c864784483ed234e089a959bbd3d15ba56bcaca4 [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")
static_library("inspect") {
public = [
"node_operations.h",
"operation_tracker.h",
]
sources = [ "operation_tracker/operation_tracker_shared.cc" ]
public_deps = [ "//zircon/system/ulib/zx" ]
deps = [ "//sdk/lib/syslog/cpp" ]
if (is_fuchsia) {
public += [
"inspect_data.h",
"inspect_tree.h",
]
sources += [
"inspect_data.cc",
"inspect_tree.cc",
"operation_tracker/operation_tracker_fuchsia.cc",
]
public_deps += [
"//src/storage/lib/block_client/cpp",
"//zircon/system/ulib/inspect",
]
deps += [ "//sdk/lib/fit" ]
}
}
test("inspect_unittests") {
output_name = "fs-inspect-unittests"
sources = [
"inspect_data_tests.cc",
"inspect_tree_tests.cc",
"operation_tracker/operation_tracker_fuchsia_tests.cc",
]
deps = [
":inspect",
"//sdk/lib/inspect/testing/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/storage/lib/block_client/cpp:fake_device",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("vfs-inspect-tests") {
deps = [ ":inspect_unittests" ]
}
group("tests") {
testonly = true
deps = [ ":vfs-inspect-tests" ]
}