blob: 19da82be91444ca1923a36cbc8b2399ec33ea863 [file] [log] [blame] [edit]
# Copyright 2020 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/bind/bind.gni")
import("//build/components.gni")
import("//build/drivers.gni")
import("//build/test.gni")
bind_library("testlib_bind") {
source = "test_lib.bind"
name = "testlib"
}
group("tests") {
testonly = true
deps = [ ":ddktl-unittest-package" ]
}
test("ddktl-test") {
configs += [ "//build/config/fuchsia:enable_zircon_asserts" ]
sources = [
"device-tests.cc",
"ethernet-tests.cc",
"node-group-tests.cc",
]
deps = [
":testlib_bind_cpp",
"//examples/fidl/fuchsia.examples:fuchsia.examples_cpp_wire",
"//sdk/banjo/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.test:fuchsia.hardware.test_banjo_cpp",
"//sdk/lib/fdio",
"//src/devices/bind/fuchsia:fuchsia_cpp",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("ddktl-unittest-package") {
package_name = "ddktl"
deps = [ ":ddktl-test" ]
}