blob: 18ae83a02a5dddb24540a64fc9a8037c33f03921 [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/unification/images/migrated_manifest.gni")
generated_file("zxcrypt_config.txt") {
# TODO(44278): Remove when converting this file to proper GN build idioms.
testonly = false
outputs = [ "$target_gen_dir/$target_name.txt" ]
contents = "null"
metadata = {
migrated_manifest_lines =
[ "config/zxcrypt=" + rebase_path(outputs[0], root_build_dir) ]
}
}
test("fs-recovery") {
# Dependent manifests unfortunately cannot be marked as `testonly`.
# TODO(44278): Remove when converting this file to proper GN build idioms.
testonly = false
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "recovery.cc" ]
deps = [
":zxcrypt_config.txt",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fdio",
"//zircon/public/lib/fzl",
"//zircon/public/lib/unittest",
"//zircon/public/lib/zx",
"//zircon/system/ulib/devmgr-integration-test",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/fs-management",
"//zircon/system/ulib/fvm",
"//zircon/system/ulib/ramdevice-client",
]
# TODO(47413): Fix the leaks and remove this.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
migrated_manifest("fs-recovery-manifest") {
deps = [ ":fs-recovery" ]
}