1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//test/xts/tools/build/suite.gni")
15
16import("//test/xts/acts/graphic/vktest/comm.gni")
17
18ohos_moduletest_suite("ActsVulkanTests") {
19  part_name = "graphic_2d"
20  sources = [
21    "src/ActsVulkanApiTest.cpp",
22    "src/ActsVulkanBinding_modelTest.cpp",
23    "src/ActsVulkanClippingTest.cpp",
24    "src/ActsVulkanComputeTest.cpp",
25    "src/ActsVulkanConditional_renderingTest.cpp",
26    "src/ActsVulkanDescriptor_indexingTest.cpp",
27    "src/ActsVulkanDevice_groupTest.cpp",
28    "src/ActsVulkanDrawTest.cpp",
29    "src/ActsVulkanDrm_format_modifiersTest.cpp",
30    "src/ActsVulkanDynamic_renderingTest.cpp",
31    "src/ActsVulkanDynamic_stateTest.cpp",
32    "src/ActsVulkanFragment_operationsTest.cpp",
33    "src/ActsVulkanFragment_shader_interlockTest.cpp",
34    "src/ActsVulkanFragment_shading_rateTest.cpp",
35    "src/ActsVulkanGeometryTest.cpp",
36    "src/ActsVulkanGlslTest.cpp",
37    "src/ActsVulkanGraphicsfuzzTest.cpp",
38    "src/ActsVulkanImageTest.cpp",
39    "src/ActsVulkanImageless_framebufferTest.cpp",
40    "src/ActsVulkanInfoTest.cpp",
41    "src/ActsVulkanMemoryTest.cpp",
42    "src/ActsVulkanMemory_modelTest.cpp",
43    "src/ActsVulkanMesh_shaderTest.cpp",
44    "src/ActsVulkanMultiviewTest.cpp",
45    "src/ActsVulkanPipelineTest.cpp",
46    "src/ActsVulkanProtected_memoryTest.cpp",
47    "src/ActsVulkanQuery_poolTest.cpp",
48    "src/ActsVulkanRasterizationTest.cpp",
49    "src/ActsVulkanRay_queryTest.cpp",
50    "src/ActsVulkanRay_tracing_pipelineTest.cpp",
51    "src/ActsVulkanReconvergenceTest.cpp",
52    "src/ActsVulkanRenderpass2Test.cpp",
53    "src/ActsVulkanRenderpassTest.cpp",
54    "src/ActsVulkanRobustnessTest.cpp",
55    "src/ActsVulkanSparse_resourcesTest.cpp",
56    "src/ActsVulkanSpirv_assemblyTest.cpp",
57    "src/ActsVulkanSsboTest.cpp",
58    "src/ActsVulkanSubgroupsTest.cpp",
59    "src/ActsVulkanSynchronization2Test.cpp",
60    "src/ActsVulkanSynchronizationTest.cpp",
61    "src/ActsVulkanTessellationTest.cpp",
62    "src/ActsVulkanTest_issuesTest.cpp",
63    "src/ActsVulkanTextureTest.cpp",
64    "src/ActsVulkanTransform_feedbackTest.cpp",
65    "src/ActsVulkanUboTest.cpp",
66    "src/ActsVulkanWsiTest.cpp",
67    "src/ActsVulkanYcbcrTest.cpp",
68  ]
69
70  include_dirs = [ "src" ]
71  deps = [
72    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
73  ]
74  cflags = [ "-Wno-error" ]
75}
76
77ohos_sh_assist_suite("cpVulkan") {
78  testonly = true
79  script = "cpVulkan.sh"
80  outputs = [ "${target_out_dir}/cpVulkan.log" ]
81  root_vkgl_path = rebase_path("//")
82  args = [ "$root_vkgl_path" ]
83  deps = [
84    ":vulkanTest",
85    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
86  ]
87  part_name = "graphic_2d"
88}
89
90group("vulkanTest") {
91  testonly = true
92  if (is_standard_system) {
93    deps = [
94      "src/apitest:ActsVulkanApiTest",
95      "src/bindingmodeltest:ActsVulkanBindingmodelTest",
96      "src/clippingtest:ActsVulkanClippingTest",
97      "src/computetest:ActsVulkanComputeTest",
98      "src/conditionalrenderingtest:ActsVulkanConditionalrenderingTest",
99      "src/descriptorindexingtest:ActsVulkanDescriptorindexingTest",
100      "src/devicegrouptest:ActsVulkanDevicegroupTest",
101      "src/drawtest:ActsVulkanDrawTest",
102      "src/drmformatmodifierstest:ActsVulkanDrmformatmodifiersTest",
103      "src/dynamicrenderingtest:ActsVulkanDynamicrenderingTest",
104      "src/dynamicstatetest:ActsVulkanDynamicstateTest",
105      "src/fastlinkedlibrary:ActsVulkanFastlinkedLibraryTest",
106      "src/fragmentoperationstest:ActsVulkanFragmentoperationsTest",
107      "src/fragmentshaderinterlocktest:ActsVulkanFragmentshaderinterlockTest",
108      "src/fragmentshadingratetest:ActsVulkanFragmentshadingrateTest",
109      "src/geometrytest:ActsVulkanGeometryTest",
110      "src/glsltest:ActsVulkanGlslTest",
111      "src/graphicsfuzztest:ActsVulkanGraphicsfuzzTest",
112      "src/imagelessframebuffertest:ActsVulkanImagelessframebufferTest",
113      "src/imagetest:ActsVulkanImageTest",
114      "src/infotest:ActsVulkanInfoTest",
115      "src/memorymodeltest:ActsVulkanMemorymodelTest",
116      "src/memorytest:ActsVulkanMemoryTest",
117      "src/meshshadertest:ActsVulkanMeshshaderTest",
118      "src/monolithic:ActsVulkanMonolithicTest",
119      "src/multiviewtest:ActsVulkanMultiviewTest",
120      "src/pipelinelibrary:ActsVulkanPipelineLibraryTest",
121      "src/protectedmemorytest:ActsVulkanProtectedmemoryTest",
122      "src/querypooltest:ActsVulkanQuerypoolTest",
123      "src/rayquerytest:ActsVulkanRayqueryTest",
124      "src/raytracingpipelinetest:ActsVulkanRaytracingpipelineTest",
125      "src/reconvergencetest:ActsVulkanReconvergenceTest",
126      "src/renderpass2test:ActsVulkanRenderpass2Test",
127      "src/renderpasstest:ActsVulkanRenderpassTest",
128      "src/robustnesstest:ActsVulkanRobustnessTest",
129      "src/sparseresourcestest:ActsVulkanSparseresourcesTest",
130      "src/spirvassemblytest:ActsVulkanSpirvassemblyTest",
131      "src/ssbotest:ActsVulkanSsboTest",
132      "src/subgroupstest:ActsVulkanSubgroupsTest",
133      "src/synchronization2test:ActsVulkanSynchronization2Test",
134      "src/synchronizationtest:ActsVulkanSynchronizationTest",
135      "src/tessellationtest:ActsVulkanTessellationTest",
136      "src/texturetest:ActsVulkanTextureTest",
137      "src/transformfeedbacktest:ActsVulkanTransformfeedbackTest",
138      "src/ubotest:ActsVulkanUboTest",
139      "src/wsitest:ActsVulkanWsiTest",
140      "src/ycbcrtest:ActsVulkanYcbcrTest",
141      "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
142    ]
143  }
144}
145