| # 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/components.gni") |
| |
| executable("goldfish_test_bin") { |
| testonly = true |
| output_name = "goldfish_test" |
| |
| sources = [ "goldfish_test.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.goldfish:fuchsia.hardware.goldfish_cpp", |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/fdio", |
| "//sdk/lib/fidl", |
| "//src/lib/fsl", |
| "//src/lib/fxl/test:gtest_main", |
| "//zircon/system/ulib/zircon-internal", |
| "//zircon/system/ulib/zx", |
| ] |
| } |
| |
| fuchsia_test_component("goldfish_test_cmp") { |
| deps = [ ":goldfish_test_bin" ] |
| component_name = "goldfish_test" |
| manifest = "meta/goldfish_test.cml" |
| test_type = "system" |
| } |
| |
| fuchsia_test_package("goldfish-test-pkg") { |
| test_components = [ ":goldfish_test_cmp" ] |
| package_name = "goldfish_test" |
| test_specs = { |
| environments = [ |
| { |
| dimensions = { |
| device_type = "AEMU" |
| } |
| }, |
| ] |
| } |
| } |
| |
| group("goldfish_test") { |
| testonly = true |
| deps = [ ":goldfish-test-pkg" ] |
| } |