| # 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("//build/unification/images/migrated_manifest.gni") |
| |
| fidl("fuchsia.device.lifecycle.test") { |
| sources = [ "lifecycle.test.fidl" ] |
| public_deps = [ "//zircon/vdso/zx" ] |
| } |
| |
| driver_module("ddk-lifecycle-test") { |
| # Dependent manifests unfortunately cannot be marked as `testonly`. |
| # TODO(44278): Remove when converting this file to proper GN build idioms. |
| testonly = false |
| defines = [ "_ALL_SOURCE" ] |
| configs += [ "//build/config/fuchsia:enable_zircon_asserts" ] |
| configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ] |
| configs += [ "//build/config/fuchsia:static_cpp_standard_library" ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ |
| "test-driver-child.cc", |
| "test-driver.cc", |
| ] |
| deps = [ |
| ":fuchsia.device.lifecycle.test_llcpp", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//zircon/public/lib/fdio", |
| "//zircon/public/lib/sync", |
| ] |
| } |
| |
| test("ddk-lifecycle") { |
| # Dependent manifests unfortunately cannot be marked as `testonly`. |
| # TODO(44278): Remove when converting this file to proper GN build idioms. |
| testonly = false |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "test.cc" ] |
| deps = [ |
| ":fuchsia.device.lifecycle.test_llcpp", |
| "//sdk/fidl/fuchsia.hardware.serial:fuchsia.hardware.serial_llcpp", |
| "//src/lib/ddk", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fdio", |
| "//zircon/public/lib/fit", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/fidl/fuchsia-device:llcpp", |
| "//zircon/system/fidl/fuchsia-io:llcpp", |
| "//zircon/system/ulib/devmgr-integration-test", |
| "//zircon/system/ulib/devmgr-launcher", |
| "//zircon/system/ulib/driver-integration-test", |
| ] |
| } |
| |
| migrated_manifest("ddk-lifecycle-test-manifest") { |
| deps = [ ":ddk-lifecycle-test" ] |
| } |
| |
| migrated_manifest("ddk-lifecycle-manifest") { |
| deps = [ ":ddk-lifecycle" ] |
| } |