| # 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. |
| # File generated by ../gen.py - do not modify. |
| |
| import("//build/components/fuchsia_test_package.gni") |
| import("//src/lib/vulkan/vulkan.gni") |
| |
| # Add a label of "vulkan-cts" for each environment given in the list |
| # of general hardware environments for magma tests. The label ensures |
| # that the Vulkan CTS will not be run in the general test pipeline; |
| # the label will be keyed on so that the suite may be run in a special |
| # builder. |
| labeled_magma_hardware_envs = [] |
| foreach(env, vulkan_envs) { |
| labeled_env = { |
| } # Clear from previous iteration. |
| labeled_env = { |
| forward_variables_from(env, "*") |
| if (defined(tags)) { |
| tags += [ "vulkan-cts" ] |
| } else { |
| tags = [ "vulkan-cts" ] |
| } |
| } |
| labeled_magma_hardware_envs += [ labeled_env ] |
| } |
| |
| # This matches FRACTION_COUNT in ../gen.py. |
| cts_item_list = [ |
| "0", |
| "1", |
| "2", |
| "3", |
| "4", |
| "5", |
| "6", |
| "7", |
| ] |
| |
| cts_components = [] |
| foreach(cts_item, cts_item_list) { |
| fuchsia_component("vulkan-cts-upstream-split-$cts_item") { |
| testonly = true |
| manifest = "meta/vulkan-cts-upstream-split-$cts_item.cml" |
| deps = [ "..:cts-deps" ] |
| } |
| cts_components += [ ":vulkan-cts-upstream-split-$cts_item" ] |
| } |
| |
| fuchsia_test_package("vulkan-cts-upstream-split") { |
| test_components = cts_components |
| test_specs = { |
| environments = labeled_magma_hardware_envs |
| } |
| } |