1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include "../Deqpgles31BaseFunc.h"
19 #include "../ActsDeqpgles310018TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017005,
27         "dEQP-GLES31.functional.program_uniform.by_poi",
28         "nter.render.struct_in_array.float_vec4_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017006,
31         "dEQP-GLES31.functional.program_uniform.by_poin",
32         "ter.render.struct_in_array.float_vec4_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017007,
35         "dEQP-GLES31.functional.program_uniform.by_po",
36         "inter.render.struct_in_array.float_vec4_both");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017008,
39         "dEQP-GLES31.functional.program_uniform.by_po",
40         "inter.render.struct_in_array.mat4_mat2_vertex");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017009,
43         "dEQP-GLES31.functional.program_uniform.by_poi",
44         "nter.render.struct_in_array.mat4_mat2_fragment");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017010,
47         "dEQP-GLES31.functional.program_uniform.by_p",
48         "ointer.render.struct_in_array.mat4_mat2_both");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017011,
51         "dEQP-GLES31.functional.program_uniform.by_po",
52         "inter.render.struct_in_array.int_ivec4_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017012,
55         "dEQP-GLES31.functional.program_uniform.by_poi",
56         "nter.render.struct_in_array.int_ivec4_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017013,
59         "dEQP-GLES31.functional.program_uniform.by_p",
60         "ointer.render.struct_in_array.int_ivec4_both");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017014,
63         "dEQP-GLES31.functional.program_uniform.by_poi",
64         "nter.render.struct_in_array.uint_uvec4_vertex");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017015,
67         "dEQP-GLES31.functional.program_uniform.by_poin",
68         "ter.render.struct_in_array.uint_uvec4_fragment");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017016,
71         "dEQP-GLES31.functional.program_uniform.by_po",
72         "inter.render.struct_in_array.uint_uvec4_both");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017017,
75         "dEQP-GLES31.functional.program_uniform.by_poi",
76         "nter.render.struct_in_array.bool_bvec4_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017018,
79         "dEQP-GLES31.functional.program_uniform.by_poin",
80         "ter.render.struct_in_array.bool_bvec4_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017019,
83         "dEQP-GLES31.functional.program_uniform.by_po",
84         "inter.render.struct_in_array.bool_bvec4_both");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017020,
87         "dEQP-GLES31.functional.program_uniform.by_pointer.",
88         "render.struct_in_array.sampler2D_samplerCube_vertex");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017021,
91         "dEQP-GLES31.functional.program_uniform.by_pointer.r",
92         "ender.struct_in_array.sampler2D_samplerCube_fragment");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017022,
95         "dEQP-GLES31.functional.program_uniform.by_pointer",
96         ".render.struct_in_array.sampler2D_samplerCube_both");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017386,
99         "dEQP-GLES31.functional.program_uniform.by_va",
100         "lue.render.struct_in_array.float_vec4_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017387,
103         "dEQP-GLES31.functional.program_uniform.by_val",
104         "ue.render.struct_in_array.float_vec4_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017388,
107         "dEQP-GLES31.functional.program_uniform.by_v",
108         "alue.render.struct_in_array.float_vec4_both");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017389,
111         "dEQP-GLES31.functional.program_uniform.by_v",
112         "alue.render.struct_in_array.int_ivec4_vertex");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017390,
115         "dEQP-GLES31.functional.program_uniform.by_va",
116         "lue.render.struct_in_array.int_ivec4_fragment");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017391,
119         "dEQP-GLES31.functional.program_uniform.by_",
120         "value.render.struct_in_array.int_ivec4_both");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017392,
123         "dEQP-GLES31.functional.program_uniform.by_va",
124         "lue.render.struct_in_array.uint_uvec4_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017393,
127         "dEQP-GLES31.functional.program_uniform.by_val",
128         "ue.render.struct_in_array.uint_uvec4_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017394,
131         "dEQP-GLES31.functional.program_uniform.by_v",
132         "alue.render.struct_in_array.uint_uvec4_both");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017395,
135         "dEQP-GLES31.functional.program_uniform.by_va",
136         "lue.render.struct_in_array.bool_bvec4_vertex");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017396,
139         "dEQP-GLES31.functional.program_uniform.by_val",
140         "ue.render.struct_in_array.bool_bvec4_fragment");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017397,
143         "dEQP-GLES31.functional.program_uniform.by_v",
144         "alue.render.struct_in_array.bool_bvec4_both");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017398,
147         "dEQP-GLES31.functional.program_uniform.by_value.r",
148         "ender.struct_in_array.sampler2D_samplerCube_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017399,
151         "dEQP-GLES31.functional.program_uniform.by_value.re",
152         "nder.struct_in_array.sampler2D_samplerCube_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017400,
155         "dEQP-GLES31.functional.program_uniform.by_value.",
156         "render.struct_in_array.sampler2D_samplerCube_both");
157