blob: 63b13656111763287eb0a82acddd4dfc26378648 [file] [log] [blame]
# Copyright 2019 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/test/test_package.gni")
import("//src/graphics/lib/magma/gnbuild/magma.gni")
import("//src/lib/vulkan/layers.gni")
group("tests") {
testonly = true
deps = [
":hw_tests",
"goldfish_benchmark",
"goldfish_test",
]
}
group("hw_tests") {
testonly = true
deps = [
":vulkan-tests",
"benchmark",
"vkvalidation:test-vk-validation",
]
}
protected_libvulkan_envs = []
# Filter out everything that's not astro or sherlock.
foreach(env, magma_libvulkan_hardware_envs) {
if (env == sherlock_env || env == astro_env) {
protected_libvulkan_envs += [ env ]
}
}
test_package("vulkan-tests") {
deps = [
"icd_load",
"vk_timer_query",
"vkext",
"vkloop",
"vkpriority",
"vkreadback",
]
loadable_modules = vulkan_validation_layers.loadable_modules
resources = vulkan_validation_layers.resources
public_deps = vulkan_validation_layers.public_deps
tests = [
{
name = "icd_load"
environments = magma_libvulkan_hardware_envs
},
{
name = "vkreadback"
# TODO(fxb/47373): Restore astro_env when fxb/44570 is fixed.
environments =
magma_libvulkan_hardware_envs + [ astro_env ] - [ astro_env ]
},
{
name = "vkloop"
environments = magma_libvulkan_hardware_envs
},
{
name = "vkext"
dest = "vkext_unprotected"
environments = magma_libvulkan_hardware_envs
},
{
name = "vkext"
dest = "vkext_protected"
environments = protected_libvulkan_envs
},
{
name = "vkpriority"
# No available hardware to run it on; cannot run with an Intel GPU.
disabled = true
},
{
name = "vk_timer_query_tests"
environments = magma_libvulkan_arm_hardware_envs
},
]
resources += [
{
path = "vkloop/comp.spv"
dest = "vkloop.spv"
},
]
}