| # Copyright 2023 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") |
| |
| group("smoke") { |
| testonly = true |
| deps = [ ":zircon_guest_smoke_tests_pkg" ] |
| } |
| |
| executable("zircon_guest_smoke_tests") { |
| visibility = [ ":*" ] |
| testonly = true |
| |
| sources = [ "zircon_guest_tests.cc" ] |
| |
| deps = [ |
| "//sdk/lib/sys/component/cpp/testing:cpp", |
| "//src/lib/json_parser", |
| "//src/virtualization/tests/lib", |
| "//src/virtualization/tests/lib:guest_console", |
| "//src/virtualization/tests/lib:test_main", |
| "//third_party/googletest:gmock", |
| "//third_party/re2", |
| ] |
| } |
| |
| fuchsia_test_component("zircon_guest_smoke_tests_cmp") { |
| component_name = "zircon_guest_smoke_tests" |
| deps = [ ":zircon_guest_smoke_tests" ] |
| manifest = "meta/zircon_guest_smoke_tests.cml" |
| test_type = "system" |
| } |
| |
| fuchsia_test_package("zircon_guest_smoke_tests_pkg") { |
| package_name = "zircon-guest-smoke-tests" |
| test_components = [ ":zircon_guest_smoke_tests_cmp" ] |
| subpackages = |
| [ "//src/virtualization/bin/guest_manager:zircon_guest_manager" ] |
| test_specs = { |
| environments = guest_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |