blob: 01f9b6df6d48e50c32ca8e931328d4b98d522788 [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")
import("//src/sys/build/components.gni")
group("test") {
testonly = true
deps = [ ":nand-unittest-bin" ]
}
test("nand-unittest-bin") {
output_name = "nand-unittest"
sources = [ "nand-test.cc" ]
deps = [
"//sdk/banjo/fuchsia.hardware.nand",
"//sdk/banjo/fuchsia.hardware.rawnand",
"//sdk/fidl/fuchsia.hardware.nand:fuchsia.hardware.nand_c",
"//src/devices/lib/dev-operation",
"//src/devices/nand/drivers/nand:common",
"//src/devices/testing/fake_ddk",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/fzl",
]
}
fuchsia_unittest_package("nand-unittest") {
deps = [ ":nand-unittest-bin" ]
test_specs = {
environments = basic_envs
}
}
group("tests") {
testonly = true
deps = [ ":nand-unittest" ]
}