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 "../ActsDeqpgles310020TestSuite.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(ActsDeqpgles310020TestSuite, TestCase_019226,
27         "dEQP-GLES31.functional.debug.negative_coverage.log.",
28         "shader_function.bitfield_extract_invalid_value_type");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019227,
31         "dEQP-GLES31.functional.debug.negative_coverage.log.",
32         "shader_function.bitfield_extract_invalid_offset_type");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019228,
35         "dEQP-GLES31.functional.debug.negative_coverage.log",
36         ".shader_function.bitfield_extract_invalid_bits_type");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019229,
39         "dEQP-GLES31.functional.debug.negative_coverage.log",
40         ".shader_function.bitfield_insert_invalid_base_type");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019230,
43         "dEQP-GLES31.functional.debug.negative_coverage.log.",
44         "shader_function.bitfield_insert_invalid_insert_type");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019231,
47         "dEQP-GLES31.functional.debug.negative_coverage.log.",
48         "shader_function.bitfield_insert_invalid_offset_type");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019232,
51         "dEQP-GLES31.functional.debug.negative_coverage.log",
52         ".shader_function.bitfield_insert_invalid_bits_type");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019233,
55         "dEQP-GLES31.functional.debug.negative_cov",
56         "erage.log.shader_function.bitfield_reverse");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019234,
59         "dEQP-GLES31.functional.debug.negative_",
60         "coverage.log.shader_function.bit_count");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019235,
63         "dEQP-GLES31.functional.debug.negative",
64         "_coverage.log.shader_function.find_msb");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019236,
67         "dEQP-GLES31.functional.debug.negative",
68         "_coverage.log.shader_function.find_lsb");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019237,
71         "dEQP-GLES31.functional.debug.negative_cover",
72         "age.log.shader_function.uadd_carry_invalid_x");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019238,
75         "dEQP-GLES31.functional.debug.negative_cover",
76         "age.log.shader_function.uadd_carry_invalid_y");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019239,
79         "dEQP-GLES31.functional.debug.negative_coverag",
80         "e.log.shader_function.uadd_carry_invalid_carry");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019240,
83         "dEQP-GLES31.functional.debug.negative_covera",
84         "ge.log.shader_function.usub_borrow_invalid_x");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019241,
87         "dEQP-GLES31.functional.debug.negative_covera",
88         "ge.log.shader_function.usub_borrow_invalid_y");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019242,
91         "dEQP-GLES31.functional.debug.negative_coverage",
92         ".log.shader_function.usub_borrow_invalid_borrow");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019243,
95         "dEQP-GLES31.functional.debug.negative_coverag",
96         "e.log.shader_function.umul_extended_invalid_x");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019244,
99         "dEQP-GLES31.functional.debug.negative_coverag",
100         "e.log.shader_function.umul_extended_invalid_y");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019245,
103         "dEQP-GLES31.functional.debug.negative_coverage",
104         ".log.shader_function.umul_extended_invalid_msb");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019246,
107         "dEQP-GLES31.functional.debug.negative_coverage",
108         ".log.shader_function.umul_extended_invalid_lsb");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019247,
111         "dEQP-GLES31.functional.debug.negative_coverag",
112         "e.log.shader_function.imul_extended_invalid_x");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019248,
115         "dEQP-GLES31.functional.debug.negative_coverag",
116         "e.log.shader_function.imul_extended_invalid_y");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019249,
119         "dEQP-GLES31.functional.debug.negative_coverage",
120         ".log.shader_function.imul_extended_invalid_msb");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019250,
123         "dEQP-GLES31.functional.debug.negative_coverage",
124         ".log.shader_function.imul_extended_invalid_lsb");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019251,
127         "dEQP-GLES31.functional.debug.negative_cov",
128         "erage.log.shader_function.frexp_invalid_x");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019252,
131         "dEQP-GLES31.functional.debug.negative_cove",
132         "rage.log.shader_function.frexp_invalid_exp");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019253,
135         "dEQP-GLES31.functional.debug.negative_cov",
136         "erage.log.shader_function.ldexp_invalid_x");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019254,
139         "dEQP-GLES31.functional.debug.negative_cove",
140         "rage.log.shader_function.ldexp_invalid_exp");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019255,
143         "dEQP-GLES31.functional.debug.negative_co",
144         "verage.log.shader_function.pack_unorm_4x8");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019256,
147         "dEQP-GLES31.functional.debug.negative_co",
148         "verage.log.shader_function.pack_snorm_4x8");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019257,
151         "dEQP-GLES31.functional.debug.negative_cov",
152         "erage.log.shader_function.unpack_snorm_4x8");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019258,
155         "dEQP-GLES31.functional.debug.negative_cov",
156         "erage.log.shader_function.unpack_unorm_4x8");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019259,
159         "dEQP-GLES31.functional.debug.negative_coverage.",
160         "log.shader_function.texture_size_invalid_sampler");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019260,
163         "dEQP-GLES31.functional.debug.negative_coverag",
164         "e.log.shader_function.texture_size_invalid_lod");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019261,
167         "dEQP-GLES31.functional.debug.negative_cove",
168         "rage.log.shader_function.texture_invalid_p");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019262,
171         "dEQP-GLES31.functional.debug.negative_coverage.lo",
172         "g.shader_function.texture_invalid_bias_or_compare");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019263,
175         "dEQP-GLES31.functional.debug.negative_covera",
176         "ge.log.shader_function.texture_lod_invalid_p");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019264,
179         "dEQP-GLES31.functional.debug.negative_coverag",
180         "e.log.shader_function.texture_lod_invalid_lod");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019265,
183         "dEQP-GLES31.functional.debug.negative_covera",
184         "ge.log.shader_function.texel_fetch_invalid_p");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019266,
187         "dEQP-GLES31.functional.debug.negative_coverage",
188         ".log.shader_function.texel_fetch_invalid_sample");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019267,
191         "dEQP-GLES31.functional.debug.negative_c",
192         "overage.log.shader_function.emit_vertex");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019268,
195         "dEQP-GLES31.functional.debug.negative_co",
196         "verage.log.shader_function.end_primitive");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019269,
199         "dEQP-GLES31.functional.debug.negative_c",
200         "overage.log.shader_function.texture_grad");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019270,
203         "dEQP-GLES31.functional.debug.negative_coverage",
204         ".log.shader_function.texture_gather_sampler_2d");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019271,
207         "dEQP-GLES31.functional.debug.negative_coverage.lo",
208         "g.shader_function.texture_gather_sampler_2d_array");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019272,
211         "dEQP-GLES31.functional.debug.negative_coverage.",
212         "log.shader_function.texture_gather_sampler_cube");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019273,
215         "dEQP-GLES31.functional.debug.negative_coverage.lo",
216         "g.shader_function.texture_gather_sampler_2d_shadow");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019274,
219         "dEQP-GLES31.functional.debug.negative_coverage.log.s",
220         "hader_function.texture_gather_sampler_2d_array_shadow");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019275,
223         "dEQP-GLES31.functional.debug.negative_coverage.log",
224         ".shader_function.texture_gather_sampler_cube_shadow");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019276,
227         "dEQP-GLES31.functional.debug.negative_coverage.log",
228         ".shader_function.texture_gather_sampler_cube_array");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019277,
231         "dEQP-GLES31.functional.debug.negative_coverage.log.sh",
232         "ader_function.texture_gather_sampler_cube_array_shadow");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019278,
235         "dEQP-GLES31.functional.debug.negative_coverage.lo",
236         "g.shader_function.texture_gather_offset_sampler_2d");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019279,
239         "dEQP-GLES31.functional.debug.negative_coverage.log.s",
240         "hader_function.texture_gather_offset_sampler_2d_array");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019280,
243         "dEQP-GLES31.functional.debug.negative_coverage.log.sh",
244         "ader_function.texture_gather_offset_sampler_2d_shadow");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019281,
247         "dEQP-GLES31.functional.debug.negative_coverage.log.shade",
248         "r_function.texture_gather_offset_sampler_2d_array_shadow");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019282,
251         "dEQP-GLES31.functional.debug.negative_covera",
252         "ge.log.shader_function.texture_gather_offsets");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019283,
255         "dEQP-GLES31.functional.debug.negative_",
256         "coverage.log.shader_function.atomic_add");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019284,
259         "dEQP-GLES31.functional.debug.negative_",
260         "coverage.log.shader_function.atomic_min");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019285,
263         "dEQP-GLES31.functional.debug.negative_",
264         "coverage.log.shader_function.atomic_max");
265 
266 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019286,
267         "dEQP-GLES31.functional.debug.negative_",
268         "coverage.log.shader_function.atomic_and");
269 
270 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019287,
271         "dEQP-GLES31.functional.debug.negative_",
272         "coverage.log.shader_function.atomic_or");
273 
274 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019288,
275         "dEQP-GLES31.functional.debug.negative_",
276         "coverage.log.shader_function.atomic_xor");
277 
278 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019289,
279         "dEQP-GLES31.functional.debug.negative_cov",
280         "erage.log.shader_function.atomic_exchange");
281 
282 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019290,
283         "dEQP-GLES31.functional.debug.negative_cov",
284         "erage.log.shader_function.atomic_comp_swap");
285 
286 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019291,
287         "dEQP-GLES31.functional.debug.negative_coverag",
288         "e.log.shader_function.interpolate_at_centroid");
289 
290 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019292,
291         "dEQP-GLES31.functional.debug.negative_covera",
292         "ge.log.shader_function.interpolate_at_sample");
293 
294 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019293,
295         "dEQP-GLES31.functional.debug.negative_covera",
296         "ge.log.shader_function.interpolate_at_offset");
297 
298 static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019294,
299         "dEQP-GLES31.functional.debug.negati",
300         "ve_coverage.log.shader_function.fma");
301