blob: 78997228d6e7cf2a16a36695daaf251d4711b4aa [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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//build/test/test_package.gni")
test("zxcrypt") {
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
}
}
sources = [
"main.c",
"test-device.cc",
"volume.cc",
"zxcrypt.cc",
]
deps = [
"//third_party/boringssl",
"//zircon/public/lib/block-client",
"//zircon/public/lib/ddk",
"//zircon/public/lib/devmgr-integration-test",
"//zircon/public/lib/digest",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fdio",
"//zircon/public/lib/fdio-caller",
"//zircon/public/lib/fs",
"//zircon/public/lib/fs-management",
"//zircon/public/lib/fvm",
"//zircon/public/lib/fzl",
"//zircon/public/lib/gpt",
"//zircon/public/lib/pretty",
"//zircon/public/lib/ramdevice-client",
"//zircon/public/lib/unittest",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zx",
"//zircon/system/fidl/fuchsia-device:llcpp",
"//zircon/system/fidl/fuchsia-hardware-ramdisk:c",
"//zircon/system/ulib/kms-stateless",
"//zircon/system/ulib/zxcrypt:zxcrypt-fdio",
]
}
unittest_package("zxcrypt-package") {
package_name = "zxcrypt"
deps = [ ":zxcrypt" ]
tests = [
{
name = "zxcrypt"
dest = "zxcrypt-test"
},
]
}