blob: 435f0246a12f1dc0aec4667484e7feb40b52beaf [file] [edit]
# 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("//build/components.gni")
import("//build/testing/cc_test_executable.gni")
cc_test_executable("nonhardware_tests") {
testonly = true
output_name = "msd-vsi-vip-nonhardware-tests"
sources = [
"test_address_space.cc",
"test_connection.cc",
"test_context.cc",
"test_page_table_slot_allocator.cc",
"test_registers.cc",
"test_ringbuffer.cc",
]
deps = [
"//src/devices/testing/no_ddk",
"//src/graphics/drivers/msd-vsi-vip/src",
"//src/graphics/magma/lib/magma/platform/zircon:thread_profile_dfv2",
"//src/graphics/magma/lib/magma/test_util:logger_init_helper",
"//src/graphics/magma/lib/magma_service/mock:bus_mapper",
"//src/graphics/magma/lib/magma_service/mock:mmio",
"//src/graphics/magma/lib/magma_service/sys_driver",
"//src/graphics/magma/lib/magma_service/test_util:msd_stubs",
"//src/graphics/magma/lib/magma_service/util:mapped_batch",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//zircon/system/ulib/trace",
"//zircon/system/ulib/trace-vthread",
]
}
# These tests require a graphics device to run.
# They can be run inside the test build of the driver.
source_set("hardware_tests") {
testonly = true
include_dirs = [ "//third_party/etnaviv_gpu_tests/src/" ]
sources = [
"//third_party/etnaviv_gpu_tests/src/etnaviv_cl_test_gc7000.c",
"test_command_buffer.cc",
"test_device.cc",
"test_device_dump.cc",
"test_events.cc",
"test_exec.cc",
"test_fault_recovery.cc",
"test_irq_queue.cc",
"test_memory_write.cc",
"test_sram.cc",
"test_suspend.cc",
"test_vsi_platform_device.cc",
]
deps = [
"../../src",
"//src/graphics/magma/lib/magma_service/test_util:platform_device_helper_dfv2",
"//src/graphics/magma/lib/magma_service/test_util:platform_msd_device_helper",
"//src/graphics/magma/lib/magma_service/util:mapped_batch",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("msd-vsi-vip-nonhardware-tests") {
manifest = "meta/msd-vsi-vip-nonhardware-tests.cml"
deps = [ ":nonhardware_tests" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}