| # 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/test.gni") |
| import("//build/unification/images/migrated_manifest.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":aml-rawnand-unittest" ] |
| } |
| |
| test("aml-rawnand-unittest") { |
| # Dependent manifests unfortunately cannot be marked as `testonly`. |
| # TODO(44278): Remove when converting this file to proper GN build idioms. |
| if (is_fuchsia) { |
| testonly = false |
| } |
| 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 |
| } |
| } |
| include_dirs = [ ".." ] |
| sources = [ |
| "../aml-rawnand.cc", |
| "aml-rawnand-test.cc", |
| ] |
| deps = [ |
| "..:common", |
| "//zircon/public/lib/fake-bti", |
| "//zircon/public/lib/fake_ddk", |
| "//zircon/public/lib/fdio", |
| "//zircon/public/lib/mock-mmio-reg", |
| "//zircon/public/lib/zxtest", |
| ] |
| } |
| |
| migrated_manifest("aml-rawnand-unittest-manifest") { |
| deps = [ ":aml-rawnand-unittest" ] |
| } |