| # 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/test.gni") |
| import("//build/test/test_package.gni") |
| |
| test("fake-msi") { |
| if (is_fuchsia) { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| fdio_config = [ "//build/config/fuchsia:fdio_config" ] |
| if (configs + fdio_config - fdio_config != configs) { |
| configs -= fdio_config |
| } |
| } |
| sources = [ "fake-msi-test.cc" ] |
| deps = [ |
| "//src/devices/testing/fake-msi", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxc", |
| "//zircon/public/lib/zxtest", |
| ] |
| } |
| |
| unittest_package("fake-msi-package") { |
| package_name = "fake-msi" |
| deps = [ ":fake-msi" ] |
| |
| tests = [ |
| { |
| name = "fake-msi" |
| dest = "fake-msi-test" |
| }, |
| ] |
| } |