| # 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/test.gni") | 
 | import("//build/test/test_package.gni") | 
 |  | 
 | group("tests") { | 
 |   testonly = true | 
 |   deps = [ ":ddk-unittest-package" ] | 
 | } | 
 |  | 
 | test("ddk-unittest") { | 
 |   output_name = "ddk-unittest-test" | 
 |   if (is_fuchsia) { | 
 |     configs += [ "//build/unification/config:zircon-migrated" ] | 
 |   } | 
 |   if (is_fuchsia) { | 
 |     fdio_config = [ "//build/config/fuchsia:fdio_config" ] | 
 |     if (configs + fdio_config - fdio_config != configs) { | 
 |       configs -= fdio_config | 
 |     } | 
 |   } | 
 |   sources = [ "phys-iter-test.cc" ] | 
 |   deps = [ | 
 |     "//sdk/lib/fdio", | 
 |     "//src/lib/ddk", | 
 |     "//zircon/public/lib/fbl", | 
 |     "//zircon/public/lib/zxtest", | 
 |   ] | 
 | } | 
 |  | 
 | unittest_package("ddk-unittest-package") { | 
 |   package_name = "ddk-unittest" | 
 |   deps = [ ":ddk-unittest" ] | 
 |  | 
 |   tests = [ | 
 |     { | 
 |       name = "ddk-unittest-test" | 
 |     }, | 
 |   ] | 
 | } |