blob: dbce4c9a12e1ad7a32d3cbfb8744cd0d089f0b4c [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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//build/test/test_package.gni")
test("ethernet") {
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "ethernet.cc" ]
deps = [
"//sdk/banjo/ddk.protocol.ethernet",
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_c",
"//sdk/fidl/fuchsia.hardware.ethertap:fuchsia.hardware.ethertap_c",
"//src/lib/ddk",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fdio",
"//zircon/public/lib/fidl",
"//zircon/public/lib/zx",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/unittest",
]
}
unittest_package("ethernet-package") {
package_name = "ethernet"
deps = [ ":ethernet" ]
tests = [
{
name = "ethernet"
dest = "ethernet-test"
},
]
}