blob: 0b12ebd7ae171041710eed5744f7964125a62996 [file] [log] [blame]
# 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 visibility to ensure OS is checked.
visibility = [ ":tests" ]
sources = [ "nand-volume-driver-tests.cc" ]
deps = [
":common",
"//zircon/system/ulib/ftl-mtd",
"//zircon/system/ulib/mtd",
"//zircon/system/ulib/zxtest",
]
}