blob: b93573926538366fdd95a3236c2146abf1b6e9dc [file] [log] [blame]
# Copyright 2022 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")
test("gigaboot_unittests") {
sources = [
"boot_zbi_items_tests.cc",
"cmdline_tests.cc",
"efi_variables_test.cc",
"fastboot_test.cc",
"gpt_tests.cc",
"input_test.cc",
"mock_boot_service.cc",
"mock_boot_service.h",
"mock_efi_variables.h",
# TODO(https://fxbug.dev/42081851) Re-enable this test once clang front end
# bug is fixed.
# "network_test.cc",
"tss2_uefi_tests.cc",
"utils_test.cc",
]
public_deps = [
"..:lib",
"//sdk/lib/fit",
"//src/firmware/gigaboot/lib:shared",
"//src/firmware/lib/abr:in_tree",
"//src/firmware/lib/fastboot/test:utils",
"//src/firmware/lib/zircon_boot:in_tree",
"//src/firmware/lib/zircon_boot/test:mock_zircon_boot_lib",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//src/lib/zbitl",
"//zircon/kernel/lib/efi",
"//zircon/kernel/lib/efi/testing",
"//zircon/system/ulib/fbl",
"//zircon/third_party/ulib/cksum",
]
include_dirs = [ ".." ]
}
group("tests") {
testonly = true
deps = [ ":gigaboot_unittests($host_toolchain)" ]
}