| # 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("//build/test.gni") |
| import("//build/testing/bootfs_test.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":disk_inspector_unit" ] |
| } |
| |
| test("disk_inspector_unit") { |
| if (is_fuchsia) { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| } |
| if (is_fuchsia) { |
| fdio_config = [ "//build/config/fuchsia:fdio_config" ] |
| if (configs + fdio_config - fdio_config != configs) { |
| configs -= fdio_config |
| } |
| } |
| output_name = "disk-inspector-unit-test" |
| sources = [ |
| "basic_types_test.cc", |
| "command_test.cc", |
| "disk_primitive_test.cc", |
| "disk_struct_test.cc", |
| "inspector_transaction_handler_test.cc", |
| "loader_test.cc", |
| "type_utils_test.cc", |
| ] |
| deps = [ |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/block-client", |
| "//zircon/system/ulib/block-client:fake-device", |
| "//zircon/system/ulib/disk_inspector", |
| "//zircon/system/ulib/storage/buffer", |
| "//zircon/system/ulib/storage/operation", |
| ] |
| include_dirs = [ "//zircon/system/ulib/disk_inspector" ] |
| } |
| |
| bootfs_test("disk_inspector_unit-bootfs-test") { |
| name = "disk-inspector-unit-test" |
| deps = [ ":disk_inspector_unit" ] |
| } |