| # 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") |
| |
| group("tests") { |
| testonly = true |
| if (current_os == "linux") { |
| # This test requires an environment with mtd/mtd-user.h and MTD support. |
| # Currently, Linux is the only OS with that support. |
| deps = [ ":nand-redundant-storage($host_toolchain)" ] |
| } |
| } |
| |
| test("nand-redundant-storage") { |
| # Restrict visbility to ensure OS is checked. |
| visibility = [ ":tests" ] |
| sources = [ "nand-rs-tests.cc" ] |
| deps = [ |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/nand-redundant-storage", |
| ] |
| |
| # Used by the test to point to the correct simulated MTD storage. |
| if (current_cpu == "arm64") { |
| defines = [ "ASTRO" ] |
| } |
| } |