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 "../ActsDeqpgles310019TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018508,
27        "dEQP-GLES31.functional.debug.negative_",
28        "coverage.callbacks.shader.create_shader");
29
30static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018509,
31        "dEQP-GLES31.functional.debug.negative_",
32        "coverage.callbacks.shader.shader_source");
33
34static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018510,
35        "dEQP-GLES31.functional.debug.negative_c",
36        "overage.callbacks.shader.compile_shader");
37
38static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018511,
39        "dEQP-GLES31.functional.debug.negative_",
40        "coverage.callbacks.shader.delete_shader");
41
42static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018512,
43        "dEQP-GLES31.functional.debug.negative_",
44        "coverage.callbacks.shader.shader_binary");
45
46static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018513,
47        "dEQP-GLES31.functional.debug.negative_",
48        "coverage.callbacks.shader.attach_shader");
49
50static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018514,
51        "dEQP-GLES31.functional.debug.negative_",
52        "coverage.callbacks.shader.detach_shader");
53
54static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018515,
55        "dEQP-GLES31.functional.debug.negative_",
56        "coverage.callbacks.shader.link_program");
57
58static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018516,
59        "dEQP-GLES31.functional.debug.negative",
60        "_coverage.callbacks.shader.use_program");
61
62static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018517,
63        "dEQP-GLES31.functional.debug.negative_c",
64        "overage.callbacks.shader.delete_program");
65
66static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018518,
67        "dEQP-GLES31.functional.debug.negative_co",
68        "verage.callbacks.shader.validate_program");
69
70static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018519,
71        "dEQP-GLES31.functional.debug.negative_cov",
72        "erage.callbacks.shader.get_program_binary");
73
74static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018520,
75        "dEQP-GLES31.functional.debug.negative_c",
76        "overage.callbacks.shader.program_binary");
77
78static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018521,
79        "dEQP-GLES31.functional.debug.negative_cov",
80        "erage.callbacks.shader.program_parameteri");
81
82static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018522,
83        "dEQP-GLES31.functional.debug.negative_",
84        "coverage.callbacks.shader.gen_samplers");
85
86static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018523,
87        "dEQP-GLES31.functional.debug.negative_",
88        "coverage.callbacks.shader.bind_sampler");
89
90static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018524,
91        "dEQP-GLES31.functional.debug.negative_c",
92        "overage.callbacks.shader.delete_samplers");
93
94static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018525,
95        "dEQP-GLES31.functional.debug.negative_cover",
96        "age.callbacks.shader.get_sampler_parameteriv");
97
98static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018526,
99        "dEQP-GLES31.functional.debug.negative_cover",
100        "age.callbacks.shader.get_sampler_parameterfv");
101
102static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018527,
103        "dEQP-GLES31.functional.debug.negative_covera",
104        "ge.callbacks.shader.get_sampler_parameterIiv");
105
106static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018528,
107        "dEQP-GLES31.functional.debug.negative_covera",
108        "ge.callbacks.shader.get_sampler_parameterIuiv");
109
110static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018529,
111        "dEQP-GLES31.functional.debug.negative_cov",
112        "erage.callbacks.shader.sampler_parameteri");
113
114static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018530,
115        "dEQP-GLES31.functional.debug.negative_cov",
116        "erage.callbacks.shader.sampler_parameteriv");
117
118static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018531,
119        "dEQP-GLES31.functional.debug.negative_cov",
120        "erage.callbacks.shader.sampler_parameterf");
121
122static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018532,
123        "dEQP-GLES31.functional.debug.negative_cov",
124        "erage.callbacks.shader.sampler_parameterfv");
125
126static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018533,
127        "dEQP-GLES31.functional.debug.negative_cove",
128        "rage.callbacks.shader.sampler_parameterIiv");
129
130static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018534,
131        "dEQP-GLES31.functional.debug.negative_cove",
132        "rage.callbacks.shader.sampler_parameterIuiv");
133
134static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018535,
135        "dEQP-GLES31.functional.debug.negative_cov",
136        "erage.callbacks.shader.get_attrib_location");
137
138static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018536,
139        "dEQP-GLES31.functional.debug.negative_cove",
140        "rage.callbacks.shader.get_uniform_location");
141
142static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018537,
143        "dEQP-GLES31.functional.debug.negative_cove",
144        "rage.callbacks.shader.bind_attrib_location");
145
146static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018538,
147        "dEQP-GLES31.functional.debug.negative_cove",
148        "rage.callbacks.shader.uniform_block_binding");
149
150static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018539,
151        "dEQP-GLES31.functional.debug.negative_covera",
152        "ge.callbacks.shader.uniformf_invalid_program");
153
154static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018540,
155        "dEQP-GLES31.functional.debug.negative_coverag",
156        "e.callbacks.shader.uniformf_incompatible_type");
157
158static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018541,
159        "dEQP-GLES31.functional.debug.negative_covera",
160        "ge.callbacks.shader.uniformf_invalid_location");
161
162static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018542,
163        "dEQP-GLES31.functional.debug.negative_covera",
164        "ge.callbacks.shader.uniformfv_invalid_program");
165
166static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018543,
167        "dEQP-GLES31.functional.debug.negative_coverag",
168        "e.callbacks.shader.uniformfv_incompatible_type");
169
170static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018544,
171        "dEQP-GLES31.functional.debug.negative_coverag",
172        "e.callbacks.shader.uniformfv_invalid_location");
173
174static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018545,
175        "dEQP-GLES31.functional.debug.negative_cover",
176        "age.callbacks.shader.uniformfv_invalid_count");
177
178static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018546,
179        "dEQP-GLES31.functional.debug.negative_covera",
180        "ge.callbacks.shader.uniformi_invalid_program");
181
182static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018547,
183        "dEQP-GLES31.functional.debug.negative_coverag",
184        "e.callbacks.shader.uniformi_incompatible_type");
185
186static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018548,
187        "dEQP-GLES31.functional.debug.negative_covera",
188        "ge.callbacks.shader.uniformi_invalid_location");
189
190static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018549,
191        "dEQP-GLES31.functional.debug.negative_covera",
192        "ge.callbacks.shader.uniformiv_invalid_program");
193
194static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018550,
195        "dEQP-GLES31.functional.debug.negative_coverag",
196        "e.callbacks.shader.uniformiv_incompatible_type");
197
198static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018551,
199        "dEQP-GLES31.functional.debug.negative_coverag",
200        "e.callbacks.shader.uniformiv_invalid_location");
201
202static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018552,
203        "dEQP-GLES31.functional.debug.negative_cover",
204        "age.callbacks.shader.uniformiv_invalid_count");
205
206static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018553,
207        "dEQP-GLES31.functional.debug.negative_covera",
208        "ge.callbacks.shader.uniformui_invalid_program");
209
210static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018554,
211        "dEQP-GLES31.functional.debug.negative_coverag",
212        "e.callbacks.shader.uniformui_incompatible_type");
213
214static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018555,
215        "dEQP-GLES31.functional.debug.negative_coverag",
216        "e.callbacks.shader.uniformui_invalid_location");
217
218static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018556,
219        "dEQP-GLES31.functional.debug.negative_coverag",
220        "e.callbacks.shader.uniformuiv_invalid_program");
221
222static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018557,
223        "dEQP-GLES31.functional.debug.negative_coverage",
224        ".callbacks.shader.uniformuiv_incompatible_type");
225
226static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018558,
227        "dEQP-GLES31.functional.debug.negative_coverag",
228        "e.callbacks.shader.uniformuiv_invalid_location");
229
230static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018559,
231        "dEQP-GLES31.functional.debug.negative_covera",
232        "ge.callbacks.shader.uniformuiv_invalid_count");
233
234static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018560,
235        "dEQP-GLES31.functional.debug.negative_coverage.c",
236        "allbacks.shader.uniform_matrixfv_invalid_program");
237
238static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018561,
239        "dEQP-GLES31.functional.debug.negative_coverage.ca",
240        "llbacks.shader.uniform_matrixfv_incompatible_type");
241
242static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018562,
243        "dEQP-GLES31.functional.debug.negative_coverage.c",
244        "allbacks.shader.uniform_matrixfv_invalid_location");
245
246static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018563,
247        "dEQP-GLES31.functional.debug.negative_coverage.",
248        "callbacks.shader.uniform_matrixfv_invalid_count");
249
250static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018564,
251        "dEQP-GLES31.functional.debug.negative_cover",
252        "age.callbacks.shader.gen_transform_feedbacks");
253
254static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018565,
255        "dEQP-GLES31.functional.debug.negative_cover",
256        "age.callbacks.shader.bind_transform_feedback");
257
258static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018566,
259        "dEQP-GLES31.functional.debug.negative_coverag",
260        "e.callbacks.shader.delete_transform_feedbacks");
261
262static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018567,
263        "dEQP-GLES31.functional.debug.negative_covera",
264        "ge.callbacks.shader.begin_transform_feedback");
265
266static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018568,
267        "dEQP-GLES31.functional.debug.negative_covera",
268        "ge.callbacks.shader.pause_transform_feedback");
269
270static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018569,
271        "dEQP-GLES31.functional.debug.negative_covera",
272        "ge.callbacks.shader.resume_transform_feedback");
273
274static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018570,
275        "dEQP-GLES31.functional.debug.negative_cover",
276        "age.callbacks.shader.end_transform_feedback");
277
278static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018571,
279        "dEQP-GLES31.functional.debug.negative_coverage.",
280        "callbacks.shader.get_transform_feedback_varying");
281
282static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018572,
283        "dEQP-GLES31.functional.debug.negative_coverag",
284        "e.callbacks.shader.transform_feedback_varyings");
285
286static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018573,
287        "dEQP-GLES31.functional.debug.negative_cover",
288        "age.callbacks.shader.compile_compute_shader");
289
290static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018574,
291        "dEQP-GLES31.functional.debug.negative_cov",
292        "erage.callbacks.shader.link_compute_shader");
293
294static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018575,
295        "dEQP-GLES31.functional.debug.negative_coverage",
296        ".callbacks.shader.srgb_decode_samplerparameteri");
297
298static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018576,
299        "dEQP-GLES31.functional.debug.negative_coverage",
300        ".callbacks.shader.srgb_decode_samplerparameterf");
301
302static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018577,
303        "dEQP-GLES31.functional.debug.negative_coverage.",
304        "callbacks.shader.srgb_decode_samplerparameteriv");
305
306static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018578,
307        "dEQP-GLES31.functional.debug.negative_coverage.",
308        "callbacks.shader.srgb_decode_samplerparameterfv");
309
310static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018579,
311        "dEQP-GLES31.functional.debug.negative_coverage.",
312        "callbacks.shader.srgb_decode_samplerparameterIiv");
313
314static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018580,
315        "dEQP-GLES31.functional.debug.negative_coverage.c",
316        "allbacks.shader.srgb_decode_samplerparameterIuiv");
317