| # Copyright 2020 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") |
| |
| group("test") { |
| testonly = true |
| |
| # avb library in tree uses <endian.h>, which is not available on mac. |
| # Therefore we disable the test now for mac platform. Once upstream |
| # avb is updated to fix the endian.h header issue, re-enable it. |
| if (host_os != "mac") { |
| deps = [ ":firmware_zircon_boot_test($host_toolchain)" ] |
| } |
| } |
| |
| test("firmware_zircon_boot_test") { |
| sources = [ |
| "mock_zircon_boot_ops.cc", |
| "zbi_utils.cc", |
| "zircon_boot.cc", |
| ] |
| deps = [ |
| "//src/firmware/lib/abr:in_tree", |
| "//src/firmware/lib/zbi:in_tree", |
| "//src/firmware/lib/zircon_boot:in_tree", |
| "//src/lib/digest", |
| "//third_party/android/platform/external/avb", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zxc", |
| "//zircon/public/lib/zxtest", |
| "//zircon/third_party/ulib/cksum", |
| ] |
| } |