| # Copyright 2018 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("//src/sys/build/components.gni") |
| |
| group("inspect") { |
| testonly = true |
| deps = [ ":appmgr_inspect_integration_tests" ] |
| } |
| |
| executable("bin-vmo") { |
| output_name = "inspect_vmo_test_app" |
| |
| sources = [ "program-vmo.cc" ] |
| |
| deps = [ |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/inspect/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| executable("test-vmo") { |
| testonly = true |
| output_name = "inspect_vmo_integration_tests" |
| |
| sources = [ "test-vmo.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.inspect", |
| "//sdk/lib/inspect/testing/cpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//src/lib/fxl", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| "//zircon/system/ulib/inspect", |
| ] |
| } |
| |
| executable("bin-health") { |
| output_name = "inspect_health_test_app" |
| |
| sources = [ "program-health.cc" ] |
| |
| deps = [ |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/inspect/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| executable("test-health") { |
| testonly = true |
| output_name = "inspect_health_integration_tests" |
| |
| sources = [ "test-health.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.inspect", |
| "//sdk/lib/inspect/testing/cpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//src/lib/fxl", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| "//zircon/system/ulib/inspect", |
| ] |
| } |
| |
| fuchsia_component("inspect_vmo_integration_tests") { |
| testonly = true |
| deps = [ ":test-vmo" ] |
| manifest = "meta/inspect_vmo_integration_tests.cmx" |
| } |
| |
| fuchsia_component("inspect_health_integration_tests") { |
| testonly = true |
| deps = [ ":test-health" ] |
| manifest = "meta/inspect_health_integration_tests.cmx" |
| } |
| |
| fuchsia_component("inspect_vmo_test_app") { |
| testonly = true |
| deps = [ ":bin-vmo" ] |
| manifest = "meta/inspect_vmo_test_app.cmx" |
| } |
| |
| fuchsia_component("inspect_health_test_app") { |
| testonly = true |
| deps = [ ":bin-health" ] |
| manifest = "meta/inspect_health_test_app.cmx" |
| } |
| |
| fuchsia_test_package("appmgr_inspect_integration_tests") { |
| test_components = [ |
| ":inspect_vmo_integration_tests", |
| ":inspect_health_integration_tests", |
| ] |
| deps = [ |
| ":inspect_health_test_app", |
| ":inspect_vmo_test_app", |
| ] |
| test_specs = { |
| } |
| } |