| # Copyright 2022 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") |
| import("//build/testing/environments.gni") |
| import("//src/proc/tests/starnix_test_package.gni") |
| import("build/starnix_host_test_component.gni") |
| import("build/starnix_linux_test_component.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ "syscalls:tests" ] |
| |
| if (target_cpu == "x64") { |
| deps += [ ":test_chromiumos_distro" ] |
| |
| # TODO(lindkvist): Remove !is_asan check when Starnix can run binaries built for |
| # ASAN. |
| if (!is_asan) { |
| deps += [ ":test_starnix_magma" ] |
| } |
| } |
| } |
| |
| fuchsia_component("sh_test") { |
| testonly = true |
| check_references = false |
| manifest = "meta/sh_test.cml" |
| } |
| |
| if (host_os == "linux" && host_cpu == "x64") { |
| starnix_host_test_component("fdio-test") { |
| test_label = "//sdk/lib/fdio/tests:fdio-test" |
| } |
| } |
| |
| starmium_test_package("test_chromiumos_distro") { |
| test_components = [ ":sh_test" ] |
| |
| # TODO(abarth): Remove !is_asan check when Starnix can run binaries built for |
| # ASAN. |
| if (host_os == "linux" && host_cpu == "x64" && !is_asan) { |
| test_components += [ ":fdio-test" ] |
| } |
| } |
| |
| starnix_linux_test_component("virtmagma_conformance_tests") { |
| test_label = |
| "//src/graphics/lib/magma/tests/integration:virtmagma_conformance_tests" |
| } |
| |
| starmium_test_package("test_starnix_magma") { |
| test_components = [ ":virtmagma_conformance_tests" ] |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| environments = [ |
| atlas_env, |
| nuc_env, |
| ] |
| } |
| } |