blob: 43080b7880af201e97ad170b34b0a5986be1b1db [file] [log] [blame]
# 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/components.gni")
import("//build/test.gni")
group("test") {
testonly = true
deps = [ ":gpt-tests" ]
}
test("gpt-unit-test") {
sources = [
"gpt-tests.cc",
"main.cc",
]
deps = [
":driver-test-realm",
"//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_cpp",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/device-watcher/cpp",
"//sdk/lib/fdio",
"//src/storage/gpt",
"//src/storage/lib/block_client/cpp",
"//src/storage/lib/ramdevice_client/cpp",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/mbr",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
"//zircon/third_party/ulib/cksum",
]
}
group("driver-test-realm") {
testonly = true
deps = [
"//sdk/lib/driver_test_realm/platform",
"//src/devices/block/drivers/core",
"//src/devices/block/drivers/ramdisk",
]
}
fuchsia_unittest_package("gpt-tests") {
deps = [ ":gpt-unit-test" ]
}