blob: 0040920922817595eadbe4eac252853901d418c1 [file]
# 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") {
deps = [ ":nand-volume-driver($host_toolchain)" ]
}
}
source_set("common") {
testonly = true
sources = [ "fake-nand-interface.cc" ]
deps = [ "//zircon/system/ulib/mtd" ]
}
test("nand-volume-driver") {
# Restrict visbility to ensure OS is checked.
visibility = [ ":tests" ]
sources = [ "nand-volume-driver-tests.cc" ]
deps = [
":common",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/ftl-mtd",
"//zircon/system/ulib/mtd",
]
}