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/acts/graphic/vkgl/comm.gni")
15
16config("deqp_platform_ohos_config") {
17  cflags_cc = deqp_common_cflags_cc
18
19  cflags_cc += [
20    # "-Wno-conversion",
21    # "-Wno-unused-function",
22    "-Wno-unused-parameter",
23  ]
24
25  defines = deqp_common_defines
26}
27
28ohos_static_library("libdeqpgles31func0006") {
29  subsystem_name = "graphic"
30  part_name = "graphic_2d"
31  sources = common_src
32  sources += [ "../Deqpgles31BaseFunc.cpp" ]
33
34  include_dirs = common_include
35  deps = common_depends_gles31
36  external_deps = [
37    "hilog:libhilog",
38    "image_framework:image_native",
39  ]
40  configs = [ ":deqp_platform_ohos_config" ]
41}
42
43ohos_moduletest_suite("ActsDeqpgles31TestSuite0006") {
44  subsystem_name = "graphic"
45  part_name = "graphic_2d"
46  sources = [
47    "../ActsDeqpgles310006TestSuite.cpp",
48    "../functional/Deqpgles31array_subscripts_input_before_subscriptTestCase.cpp",
49    "../functional/Deqpgles31array_subscripts_subscript_before_inputTestCase.cpp",
50    "../functional/Deqpgles31builtin_constants_geometry_shaderTestCase.cpp",
51    "../functional/Deqpgles31builtin_constants_sample_variablesTestCase.cpp",
52    "../functional/Deqpgles31builtin_constants_tessellation_shaderTestCase.cpp",
53    "../functional/Deqpgles31es31_functionsTestCase.cpp",
54    "../functional/Deqpgles31helper_invocation_derivateTestCase.cpp",
55    "../functional/Deqpgles31helper_invocation_valueTestCase.cpp",
56    "../functional/Deqpgles31input_before_literal_addTestCase.cpp",
57    "../functional/Deqpgles31input_before_literal_divTestCase.cpp",
58    "../functional/Deqpgles31input_before_literal_equalTestCase.cpp",
59    "../functional/Deqpgles31input_before_literal_greaterTestCase.cpp",
60    "../functional/Deqpgles31input_before_literal_greater_or_equalTestCase.cpp",
61    "../functional/Deqpgles31input_before_literal_lessTestCase.cpp",
62    "../functional/Deqpgles31input_before_literal_less_or_equalTestCase.cpp",
63    "../functional/Deqpgles31input_before_literal_mulTestCase.cpp",
64    "../functional/Deqpgles31input_before_literal_not_equalTestCase.cpp",
65    "../functional/Deqpgles31input_before_literal_subTestCase.cpp",
66    "../functional/Deqpgles31invalid_variablesTestCase.cpp",
67    "../functional/Deqpgles31literal_before_input_addTestCase.cpp",
68    "../functional/Deqpgles31literal_before_input_divTestCase.cpp",
69    "../functional/Deqpgles31literal_before_input_equalTestCase.cpp",
70    "../functional/Deqpgles31literal_before_input_greaterTestCase.cpp",
71    "../functional/Deqpgles31literal_before_input_greater_or_equalTestCase.cpp",
72    "../functional/Deqpgles31literal_before_input_lessTestCase.cpp",
73    "../functional/Deqpgles31literal_before_input_less_or_equalTestCase.cpp",
74    "../functional/Deqpgles31literal_before_input_mulTestCase.cpp",
75    "../functional/Deqpgles31literal_before_input_not_equalTestCase.cpp",
76    "../functional/Deqpgles31literal_before_input_subTestCase.cpp",
77    "../functional/Deqpgles31literal_before_paren_expr_input_in_parensTestCase.cpp",
78    "../functional/Deqpgles31literal_before_paren_expr_input_outside_parensTestCase.cpp",
79    "../functional/Deqpgles31paren_expr_before_literal_input_in_parensTestCase.cpp",
80    "../functional/Deqpgles31paren_expr_before_literal_input_outside_parensTestCase.cpp",
81    "../functional/Deqpgles31struct_fields_field_before_inputTestCase.cpp",
82    "../functional/Deqpgles31struct_fields_input_before_fieldTestCase.cpp",
83  ]
84
85  include_dirs = [ "../../../src" ]
86
87  deps = [ ":libdeqpgles31func0006" ]
88
89  cflags = [ "-Wno-error" ]
90}
91