| # 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/components.gni") |
| import("//build/test.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":aml-rawnand-unittest" ] |
| } |
| |
| test("aml-rawnand-unittest-bin") { |
| output_name = "aml-rawnand-unittest" |
| sources = [ "aml-rawnand-test.cc" ] |
| deps = [ |
| "..:common", |
| "//sdk/lib/fdio", |
| "//src/devices/testing/fake-bti", |
| "//src/devices/testing/mock-ddk", |
| "//src/devices/testing/mock-mmio-reg:mock-mmio-reg-zxtest", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("aml-rawnand-unittest") { |
| deps = [ ":aml-rawnand-unittest-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":aml-rawnand-unittest" ] |
| } |