blob: 698ff1f4361d98234c0e05eccf7a17f29a0e812b [file] [log] [blame]
# Copyright 2021 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("//src/graphics/lib/magma/gnbuild/magma.gni")
group("integration_tests") {
testonly = true
public_deps = [
":flatland_integration_tests",
":gfx_integration_tests",
":observer_integration_tests",
]
}
source_set("common_deps") {
testonly = true
sources = [
"utils.cc",
"utils.h",
]
public_deps = [
# TODO(fxbug.dev/82655): Remove this after migrating to RealmBuilder.
"//sdk/fidl/fuchsia.ui.lifecycle",
"//sdk/lib/sys/cpp/testing:integration_fixture",
"//sdk/lib/syslog/cpp",
"//sdk/lib/ui/scenic/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
deps = [ "//src/lib/fostr/fidl/fuchsia.ui.input:fuchsia.ui.input" ]
}
executable("gfx_focus_integration_test_bin") {
testonly = true
sources = [ "gfx_focus_integration_test.cc" ]
deps = [
":common_deps",
"//sdk/fidl/fuchsia.ui.focus",
"//src/ui/scenic/lib/utils",
]
}
fuchsia_test_component("gfx_focus_integration_test") {
component_name = "gfx_focus_integration_test"
manifest = "meta/gfx_focus_integration_test.cmx"
deps = [ ":gfx_focus_integration_test_bin" ]
}
executable("gfx_legacy_coordinate_transform_test_bin") {
testonly = true
sources = [ "gfx_legacy_coordinate_transform_test.cc" ]
deps = [
":common_deps",
"//src/ui/lib/glm_workaround",
]
}
fuchsia_test_component("gfx_legacy_coordinate_transform_test") {
component_name = "gfx_legacy_coordinate_transform_test"
manifest = "meta/gfx_legacy_coordinate_transform_test.cmx"
deps = [ ":gfx_legacy_coordinate_transform_test_bin" ]
}
executable("gfx_legacy_coordinate_transform_test2_bin") {
testonly = true
sources = [ "gfx_legacy_coordinate_transform_test2.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.pointerinjector",
"//src/ui/lib/glm_workaround",
]
}
fuchsia_test_component("gfx_legacy_coordinate_transform_test2") {
component_name = "gfx_legacy_coordinate_transform_test2"
manifest = "meta/gfx_legacy_coordinate_transform_test2.cmx"
deps = [ ":gfx_legacy_coordinate_transform_test2_bin" ]
}
executable("gfx_startup_input_test_bin") {
testonly = true
sources = [ "gfx_startup_input_test.cc" ]
deps = [
":common_deps",
"//sdk/fidl/fuchsia.ui.views",
]
}
fuchsia_test_component("gfx_startup_input_test") {
component_name = "gfx_startup_input_test"
manifest = "meta/gfx_startup_input_test.cmx"
deps = [ ":gfx_startup_input_test_bin" ]
}
executable("gfx_touch_integration_test_bin") {
testonly = true
sources = [ "gfx_touch_integration_test.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.pointer",
"//sdk//fidl/fuchsia.ui.pointerinjector",
"//src/ui/lib/glm_workaround",
]
}
fuchsia_test_component("gfx_touch_integration_test") {
component_name = "gfx_touch_integration_test"
manifest = "meta/gfx_touch_integration_test.cmx"
deps = [ ":gfx_touch_integration_test_bin" ]
}
executable("gfx_mouse_integration_test_bin") {
testonly = true
sources = [ "gfx_mouse_integration_test.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.pointer",
"//sdk//fidl/fuchsia.ui.pointerinjector",
"//src/ui/lib/glm_workaround",
]
}
fuchsia_test_component("gfx_mouse_integration_test") {
component_name = "gfx_mouse_integration_test"
manifest = "meta/gfx_mouse_integration_test.cmx"
deps = [ ":gfx_mouse_integration_test_bin" ]
}
executable("gfx_view_ref_installed_integration_test_bin") {
testonly = true
sources = [ "gfx_view_ref_installed_integration_test.cc" ]
deps = [
":common_deps",
"//sdk/fidl/fuchsia.ui.views",
]
}
fuchsia_test_component("gfx_view_ref_installed_integration_test") {
component_name = "gfx_view_ref_installed_integration_test"
manifest = "meta/gfx_view_ref_installed_integration_test.cmx"
deps = [ ":gfx_view_ref_installed_integration_test_bin" ]
}
executable("flatland_touch_integration_test_bin") {
testonly = true
sources = [ "flatland_touch_integration_test.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.composition",
"//sdk//fidl/fuchsia.ui.pointer",
"//sdk//fidl/fuchsia.ui.pointerinjector",
"//src/ui/lib/glm_workaround",
]
}
fuchsia_test_component("flatland_touch_integration_test") {
component_name = "flatland_touch_integration_test"
manifest = "meta/flatland_touch_integration_test.cmx"
deps = [ ":flatland_touch_integration_test_bin" ]
}
executable("flatland_focus_integration_test_bin") {
testonly = true
sources = [ "flatland_focus_integration_test.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.composition",
"//sdk/fidl/fuchsia.ui.focus",
"//src/ui/scenic/lib/utils",
]
}
fuchsia_test_component("flatland_focus_integration_test") {
component_name = "flatland_focus_integration_test"
manifest = "meta/flatland_focus_integration_test.cmx"
deps = [ ":flatland_focus_integration_test_bin" ]
}
executable("observer_registry_integration_test_bin") {
testonly = true
sources = [ "observer_registry_integration_test.cc" ]
deps = [
":common_deps",
"//sdk//fidl/fuchsia.ui.observation.geometry",
"//sdk//fidl/fuchsia.ui.observation.test",
]
}
fuchsia_test_component("observer_registry_integration_test") {
component_name = "observer_registry_integration_test"
manifest = "meta/observer_registry_integration_test.cmx"
deps = [ ":observer_registry_integration_test_bin" ]
}
fuchsia_test_package("gfx_integration_tests") {
test_components = [
":gfx_focus_integration_test",
":gfx_legacy_coordinate_transform_test",
":gfx_legacy_coordinate_transform_test2",
":gfx_mouse_integration_test",
":gfx_startup_input_test",
":gfx_touch_integration_test",
":gfx_view_ref_installed_integration_test",
]
test_specs = {
environments = [ aemu_env ] + magma_libvulkan_hardware_envs
}
deps = [ "//src/ui/scenic:component" ]
}
fuchsia_test_package("flatland_integration_tests") {
test_components = [
":flatland_touch_integration_test",
":flatland_focus_integration_test",
]
test_specs = {
# TODO(fxbug.dev/71344): Should have the same environments as "gfx_integration_tests" above, but
# Flatland display compositor currently crashes on aemu, so we skip it for now.
environments = magma_libvulkan_hardware_envs
}
deps = [ "//src/ui/scenic:component" ]
}
fuchsia_test_package("observer_integration_tests") {
test_components = [ ":observer_registry_integration_test" ]
test_specs = {
environments = [ aemu_env ] + magma_libvulkan_hardware_envs
}
deps = [ "//src/ui/scenic:component" ]
}