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
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019006,
27        "dEQP-GLES31.functional.debug.negati",
28        "ve_coverage.log.shader.create_shader");
29
30static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019007,
31        "dEQP-GLES31.functional.debug.negati",
32        "ve_coverage.log.shader.shader_source");
33
34static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019008,
35        "dEQP-GLES31.functional.debug.negativ",
36        "e_coverage.log.shader.compile_shader");
37
38static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019009,
39        "dEQP-GLES31.functional.debug.negati",
40        "ve_coverage.log.shader.delete_shader");
41
42static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019010,
43        "dEQP-GLES31.functional.debug.negati",
44        "ve_coverage.log.shader.shader_binary");
45
46static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019011,
47        "dEQP-GLES31.functional.debug.negati",
48        "ve_coverage.log.shader.attach_shader");
49
50static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019012,
51        "dEQP-GLES31.functional.debug.negati",
52        "ve_coverage.log.shader.detach_shader");
53
54static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019013,
55        "dEQP-GLES31.functional.debug.negati",
56        "ve_coverage.log.shader.link_program");
57
58static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019014,
59        "dEQP-GLES31.functional.debug.negat",
60        "ive_coverage.log.shader.use_program");
61
62static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019015,
63        "dEQP-GLES31.functional.debug.negativ",
64        "e_coverage.log.shader.delete_program");
65
66static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019016,
67        "dEQP-GLES31.functional.debug.negative",
68        "_coverage.log.shader.validate_program");
69
70static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019017,
71        "dEQP-GLES31.functional.debug.negative_",
72        "coverage.log.shader.get_program_binary");
73
74static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019018,
75        "dEQP-GLES31.functional.debug.negativ",
76        "e_coverage.log.shader.program_binary");
77
78static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019019,
79        "dEQP-GLES31.functional.debug.negative_",
80        "coverage.log.shader.program_parameteri");
81
82static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019020,
83        "dEQP-GLES31.functional.debug.negati",
84        "ve_coverage.log.shader.gen_samplers");
85
86static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019021,
87        "dEQP-GLES31.functional.debug.negati",
88        "ve_coverage.log.shader.bind_sampler");
89
90static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019022,
91        "dEQP-GLES31.functional.debug.negativ",
92        "e_coverage.log.shader.delete_samplers");
93
94static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019023,
95        "dEQP-GLES31.functional.debug.negative_co",
96        "verage.log.shader.get_sampler_parameteriv");
97
98static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019024,
99        "dEQP-GLES31.functional.debug.negative_co",
100        "verage.log.shader.get_sampler_parameterfv");
101
102static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019025,
103        "dEQP-GLES31.functional.debug.negative_cov",
104        "erage.log.shader.get_sampler_parameterIiv");
105
106static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019026,
107        "dEQP-GLES31.functional.debug.negative_cov",
108        "erage.log.shader.get_sampler_parameterIuiv");
109
110static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019027,
111        "dEQP-GLES31.functional.debug.negative_",
112        "coverage.log.shader.sampler_parameteri");
113
114static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019028,
115        "dEQP-GLES31.functional.debug.negative_",
116        "coverage.log.shader.sampler_parameteriv");
117
118static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019029,
119        "dEQP-GLES31.functional.debug.negative_",
120        "coverage.log.shader.sampler_parameterf");
121
122static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019030,
123        "dEQP-GLES31.functional.debug.negative_",
124        "coverage.log.shader.sampler_parameterfv");
125
126static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019031,
127        "dEQP-GLES31.functional.debug.negative_c",
128        "overage.log.shader.sampler_parameterIiv");
129
130static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019032,
131        "dEQP-GLES31.functional.debug.negative_c",
132        "overage.log.shader.sampler_parameterIuiv");
133
134static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019033,
135        "dEQP-GLES31.functional.debug.negative_",
136        "coverage.log.shader.get_attrib_location");
137
138static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019034,
139        "dEQP-GLES31.functional.debug.negative_c",
140        "overage.log.shader.get_uniform_location");
141
142static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019035,
143        "dEQP-GLES31.functional.debug.negative_c",
144        "overage.log.shader.bind_attrib_location");
145
146static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019036,
147        "dEQP-GLES31.functional.debug.negative_c",
148        "overage.log.shader.uniform_block_binding");
149
150static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019037,
151        "dEQP-GLES31.functional.debug.negative_cov",
152        "erage.log.shader.uniformf_invalid_program");
153
154static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019038,
155        "dEQP-GLES31.functional.debug.negative_cove",
156        "rage.log.shader.uniformf_incompatible_type");
157
158static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019039,
159        "dEQP-GLES31.functional.debug.negative_cov",
160        "erage.log.shader.uniformf_invalid_location");
161
162static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019040,
163        "dEQP-GLES31.functional.debug.negative_cov",
164        "erage.log.shader.uniformfv_invalid_program");
165
166static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019041,
167        "dEQP-GLES31.functional.debug.negative_cove",
168        "rage.log.shader.uniformfv_incompatible_type");
169
170static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019042,
171        "dEQP-GLES31.functional.debug.negative_cove",
172        "rage.log.shader.uniformfv_invalid_location");
173
174static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019043,
175        "dEQP-GLES31.functional.debug.negative_co",
176        "verage.log.shader.uniformfv_invalid_count");
177
178static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019044,
179        "dEQP-GLES31.functional.debug.negative_cov",
180        "erage.log.shader.uniformi_invalid_program");
181
182static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019045,
183        "dEQP-GLES31.functional.debug.negative_cove",
184        "rage.log.shader.uniformi_incompatible_type");
185
186static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019046,
187        "dEQP-GLES31.functional.debug.negative_cov",
188        "erage.log.shader.uniformi_invalid_location");
189
190static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019047,
191        "dEQP-GLES31.functional.debug.negative_cov",
192        "erage.log.shader.uniformiv_invalid_program");
193
194static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019048,
195        "dEQP-GLES31.functional.debug.negative_cove",
196        "rage.log.shader.uniformiv_incompatible_type");
197
198static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019049,
199        "dEQP-GLES31.functional.debug.negative_cove",
200        "rage.log.shader.uniformiv_invalid_location");
201
202static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019050,
203        "dEQP-GLES31.functional.debug.negative_co",
204        "verage.log.shader.uniformiv_invalid_count");
205
206static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019051,
207        "dEQP-GLES31.functional.debug.negative_cov",
208        "erage.log.shader.uniformui_invalid_program");
209
210static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019052,
211        "dEQP-GLES31.functional.debug.negative_cove",
212        "rage.log.shader.uniformui_incompatible_type");
213
214static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019053,
215        "dEQP-GLES31.functional.debug.negative_cove",
216        "rage.log.shader.uniformui_invalid_location");
217
218static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019054,
219        "dEQP-GLES31.functional.debug.negative_cove",
220        "rage.log.shader.uniformuiv_invalid_program");
221
222static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019055,
223        "dEQP-GLES31.functional.debug.negative_cover",
224        "age.log.shader.uniformuiv_incompatible_type");
225
226static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019056,
227        "dEQP-GLES31.functional.debug.negative_cove",
228        "rage.log.shader.uniformuiv_invalid_location");
229
230static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019057,
231        "dEQP-GLES31.functional.debug.negative_cov",
232        "erage.log.shader.uniformuiv_invalid_count");
233
234static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019058,
235        "dEQP-GLES31.functional.debug.negative_coverag",
236        "e.log.shader.uniform_matrixfv_invalid_program");
237
238static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019059,
239        "dEQP-GLES31.functional.debug.negative_coverage",
240        ".log.shader.uniform_matrixfv_incompatible_type");
241
242static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019060,
243        "dEQP-GLES31.functional.debug.negative_coverag",
244        "e.log.shader.uniform_matrixfv_invalid_location");
245
246static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019061,
247        "dEQP-GLES31.functional.debug.negative_covera",
248        "ge.log.shader.uniform_matrixfv_invalid_count");
249
250static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019062,
251        "dEQP-GLES31.functional.debug.negative_co",
252        "verage.log.shader.gen_transform_feedbacks");
253
254static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019063,
255        "dEQP-GLES31.functional.debug.negative_co",
256        "verage.log.shader.bind_transform_feedback");
257
258static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019064,
259        "dEQP-GLES31.functional.debug.negative_cove",
260        "rage.log.shader.delete_transform_feedbacks");
261
262static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019065,
263        "dEQP-GLES31.functional.debug.negative_cov",
264        "erage.log.shader.begin_transform_feedback");
265
266static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019066,
267        "dEQP-GLES31.functional.debug.negative_cov",
268        "erage.log.shader.pause_transform_feedback");
269
270static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019067,
271        "dEQP-GLES31.functional.debug.negative_cov",
272        "erage.log.shader.resume_transform_feedback");
273
274static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019068,
275        "dEQP-GLES31.functional.debug.negative_co",
276        "verage.log.shader.end_transform_feedback");
277
278static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019069,
279        "dEQP-GLES31.functional.debug.negative_covera",
280        "ge.log.shader.get_transform_feedback_varying");
281
282static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019070,
283        "dEQP-GLES31.functional.debug.negative_cove",
284        "rage.log.shader.transform_feedback_varyings");
285
286static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019071,
287        "dEQP-GLES31.functional.debug.negative_co",
288        "verage.log.shader.compile_compute_shader");
289
290static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019072,
291        "dEQP-GLES31.functional.debug.negative_",
292        "coverage.log.shader.link_compute_shader");
293
294static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019073,
295        "dEQP-GLES31.functional.debug.negative_cover",
296        "age.log.shader.srgb_decode_samplerparameteri");
297
298static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019074,
299        "dEQP-GLES31.functional.debug.negative_cover",
300        "age.log.shader.srgb_decode_samplerparameterf");
301
302static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019075,
303        "dEQP-GLES31.functional.debug.negative_covera",
304        "ge.log.shader.srgb_decode_samplerparameteriv");
305
306static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019076,
307        "dEQP-GLES31.functional.debug.negative_covera",
308        "ge.log.shader.srgb_decode_samplerparameterfv");
309
310static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019077,
311        "dEQP-GLES31.functional.debug.negative_covera",
312        "ge.log.shader.srgb_decode_samplerparameterIiv");
313
314static SHRINK_HWTEST_F(ActsDeqpgles310020TestSuite, TestCase_019078,
315        "dEQP-GLES31.functional.debug.negative_coverag",
316        "e.log.shader.srgb_decode_samplerparameterIuiv");
317