blob: 21a866adb0cf8e722003ecd9af3e0ec0e2c73f8d [file] [log] [blame]
# 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 = [
"composite-node-spec-tests.cc",
"device-tests.cc",
"ethernet-tests.cc",
]
deps = [
":testlib_bind_cpp",
"//examples/fidl/fuchsia.examples:fuchsia.examples_cpp",
"//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" ]
}