| # 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/config/fuchsia/rules.gni") |
| import("//build/fidl/fidl.gni") |
| import("//build/test.gni") |
| import("//zircon/system/ulib/devmgr-integration-test/isolated_devmgr.gni") |
| |
| fidl("fuchsia.device.inspect.test") { |
| testonly = true |
| sources = [ "inspect.test.fidl" ] |
| visibility = [ ":*" ] |
| public_deps = [ "//zircon/vdso/zx" ] |
| } |
| |
| driver_module("driver") { |
| output_name = "inspect-test" |
| testonly = true |
| configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ] |
| configs += [ "//build/config/fuchsia:static_cpp_standard_library" ] |
| |
| sources = [ "test-driver.cc" ] |
| deps = [ |
| ":fuchsia.device.inspect.test_llcpp", |
| "//sdk/lib/fdio", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//src/lib/ddktl", |
| "//zircon/system/ulib/inspect", |
| ] |
| visibility = [ ":*" ] |
| } |
| |
| test("tests") { |
| output_name = "driver-inspect-test" |
| |
| testonly = true |
| sources = [ "test.cc" ] |
| deps = [ |
| ":fuchsia.device.inspect.test_llcpp", |
| "//sdk/fidl/fuchsia.device:fuchsia.device_llcpp", |
| "//sdk/fidl/fuchsia.device.manager:fuchsia.device.manager_c", |
| "//sdk/lib/fdio", |
| "//src/lib/ddk", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async:async-cpp", |
| "//zircon/system/ulib/devmgr-integration-test", |
| "//zircon/system/ulib/devmgr-launcher", |
| "//zircon/system/ulib/driver-integration-test", |
| "//zircon/system/ulib/inspect", |
| ] |
| visibility = [ ":*" ] |
| } |
| |
| isolated_devmgr_unittest_package("driver-inspect-test") { |
| executable_path = "test/driver-inspect-test" |
| |
| deps = [ |
| ":driver", |
| ":tests", |
| "//src/devices/board/drivers/integration-test", |
| "//src/devices/bus/drivers/platform", |
| ] |
| } |