• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  sources = [
20    "src/ActsVulkanApiTest.cpp",
21    "src/ActsVulkanBinding_modelTest.cpp",
22    "src/ActsVulkanClippingTest.cpp",
23    "src/ActsVulkanComputeTest.cpp",
24    "src/ActsVulkanConditional_renderingTest.cpp",
25    "src/ActsVulkanDescriptor_indexingTest.cpp",
26    "src/ActsVulkanDevice_groupTest.cpp",
27    "src/ActsVulkanDrawTest.cpp",
28    "src/ActsVulkanDrm_format_modifiersTest.cpp",
29    "src/ActsVulkanDynamic_renderingTest.cpp",
30    "src/ActsVulkanDynamic_stateTest.cpp",
31    "src/ActsVulkanFragment_operationsTest.cpp",
32    "src/ActsVulkanFragment_shader_interlockTest.cpp",
33    "src/ActsVulkanFragment_shading_rateTest.cpp",
34    "src/ActsVulkanGeometryTest.cpp",
35    "src/ActsVulkanGlslTest.cpp",
36    "src/ActsVulkanGraphicsfuzzTest.cpp",
37    "src/ActsVulkanImageTest.cpp",
38    "src/ActsVulkanImageless_framebufferTest.cpp",
39    "src/ActsVulkanInfoTest.cpp",
40    "src/ActsVulkanMemoryTest.cpp",
41    "src/ActsVulkanMemory_modelTest.cpp",
42    "src/ActsVulkanMesh_shaderTest.cpp",
43    "src/ActsVulkanMultiviewTest.cpp",
44    "src/ActsVulkanPipelineTest.cpp",
45    "src/ActsVulkanProtected_memoryTest.cpp",
46    "src/ActsVulkanQuery_poolTest.cpp",
47    "src/ActsVulkanRasterizationTest.cpp",
48    "src/ActsVulkanRay_queryTest.cpp",
49    "src/ActsVulkanRay_tracing_pipelineTest.cpp",
50    "src/ActsVulkanReconvergenceTest.cpp",
51    "src/ActsVulkanRenderpass2Test.cpp",
52    "src/ActsVulkanRenderpassTest.cpp",
53    "src/ActsVulkanRobustnessTest.cpp",
54    "src/ActsVulkanSparse_resourcesTest.cpp",
55    "src/ActsVulkanSpirv_assemblyTest.cpp",
56    "src/ActsVulkanSsboTest.cpp",
57    "src/ActsVulkanSubgroupsTest.cpp",
58    "src/ActsVulkanSynchronization2Test.cpp",
59    "src/ActsVulkanSynchronizationTest.cpp",
60    "src/ActsVulkanTessellationTest.cpp",
61    "src/ActsVulkanTest_issuesTest.cpp",
62    "src/ActsVulkanTextureTest.cpp",
63    "src/ActsVulkanTransform_feedbackTest.cpp",
64    "src/ActsVulkanUboTest.cpp",
65    "src/ActsVulkanWsiTest.cpp",
66    "src/ActsVulkanYcbcrTest.cpp",
67  ]
68
69  include_dirs = [ "src" ]
70  deps = [
71    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
72  ]
73  cflags = [ "-Wno-error" ]
74}
75
76action("cpVulkan") {
77  testonly = true
78  script = "cpVulkan.sh"
79  outputs = [ "${target_out_dir}/cpVulkan.log" ]
80  root_vkgl_path = rebase_path("//")
81  args = [ "$root_vkgl_path" ]
82  deps = [
83    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
84  ]
85}
86
87group("vulkanTest") {
88  testonly = true
89  if (is_standard_system) {
90    deps = [
91      ":cpVulkan",
92      "src/apitest:ActsVulkanApiTest",
93      "src/bindingmodeltest:ActsVulkanBindingmodelTest",
94      "src/clippingtest:ActsVulkanClippingTest",
95      "src/computetest:ActsVulkanComputeTest",
96      "src/conditionalrenderingtest:ActsVulkanConditionalrenderingTest",
97      "src/descriptorindexingtest:ActsVulkanDescriptorindexingTest",
98      "src/devicegrouptest:ActsVulkanDevicegroupTest",
99      "src/drawtest:ActsVulkanDrawTest",
100      "src/drmformatmodifierstest:ActsVulkanDrmformatmodifiersTest",
101      "src/dynamicrenderingtest:ActsVulkanDynamicrenderingTest",
102      "src/dynamicstatetest:ActsVulkanDynamicstateTest",
103      "src/fastlinkedlibrary:ActsVulkanFastlinkedLibraryTest",
104      "src/fragmentoperationstest:ActsVulkanFragmentoperationsTest",
105      "src/fragmentshaderinterlocktest:ActsVulkanFragmentshaderinterlockTest",
106      "src/fragmentshadingratetest:ActsVulkanFragmentshadingrateTest",
107      "src/geometrytest:ActsVulkanGeometryTest",
108      "src/glsltest:ActsVulkanGlslTest",
109      "src/graphicsfuzztest:ActsVulkanGraphicsfuzzTest",
110      "src/imagelessframebuffertest:ActsVulkanImagelessframebufferTest",
111      "src/imagetest:ActsVulkanImageTest",
112      "src/infotest:ActsVulkanInfoTest",
113      "src/memorymodeltest:ActsVulkanMemorymodelTest",
114      "src/memorytest:ActsVulkanMemoryTest",
115      "src/meshshadertest:ActsVulkanMeshshaderTest",
116      "src/monolithic:ActsVulkanMonolithicTest",
117      "src/multiviewtest:ActsVulkanMultiviewTest",
118      "src/pipelinelibrary:ActsVulkanPipelineLibraryTest",
119      "src/protectedmemorytest:ActsVulkanProtectedmemoryTest",
120      "src/querypooltest:ActsVulkanQuerypoolTest",
121      "src/rasterizationtest:ActsVulkanRasterizationTest",
122      "src/rayquerytest:ActsVulkanRayqueryTest",
123      "src/raytracingpipelinetest:ActsVulkanRaytracingpipelineTest",
124      "src/reconvergencetest:ActsVulkanReconvergenceTest",
125      "src/renderpass2test:ActsVulkanRenderpass2Test",
126      "src/renderpasstest:ActsVulkanRenderpassTest",
127      "src/robustnesstest:ActsVulkanRobustnessTest",
128      "src/sparseresourcestest:ActsVulkanSparseresourcesTest",
129      "src/spirvassemblytest:ActsVulkanSpirvassemblyTest",
130      "src/ssbotest:ActsVulkanSsboTest",
131      "src/subgroupstest:ActsVulkanSubgroupsTest",
132      "src/synchronization2test:ActsVulkanSynchronization2Test",
133      "src/synchronizationtest:ActsVulkanSynchronizationTest",
134      "src/tessellationtest:ActsVulkanTessellationTest",
135      "src/texturetest:ActsVulkanTextureTest",
136      "src/transformfeedbacktest:ActsVulkanTransformfeedbackTest",
137      "src/ubotest:ActsVulkanUboTest",
138      "src/wsitest:ActsVulkanWsiTest",
139      "src/ycbcrtest:ActsVulkanYcbcrTest",
140      "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan:deqp_vk_execute",
141    ]
142  }
143}
144