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 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018608,
27         "dEQP-GLES31.functional.debug.negative_cove",
28         "rage.callbacks.vertex_array.vertex_attribf");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018609,
31         "dEQP-GLES31.functional.debug.negative_cove",
32         "rage.callbacks.vertex_array.vertex_attribfv");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018610,
35         "dEQP-GLES31.functional.debug.negative_cove",
36         "rage.callbacks.vertex_array.vertex_attribi4");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018611,
39         "dEQP-GLES31.functional.debug.negative_cover",
40         "age.callbacks.vertex_array.vertex_attribi4v");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018612,
43         "dEQP-GLES31.functional.debug.negative_coverag",
44         "e.callbacks.vertex_array.vertex_attrib_pointer");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018613,
47         "dEQP-GLES31.functional.debug.negative_coverage",
48         ".callbacks.vertex_array.vertex_attrib_i_pointer");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018614,
51         "dEQP-GLES31.functional.debug.negative_coverag",
52         "e.callbacks.vertex_array.vertex_attrib_format");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018615,
55         "dEQP-GLES31.functional.debug.negative_coverage",
56         ".callbacks.vertex_array.vertex_attrib_i_format");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018616,
59         "dEQP-GLES31.functional.debug.negative_coverage.c",
60         "allbacks.vertex_array.enable_vertex_attrib_array");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018617,
63         "dEQP-GLES31.functional.debug.negative_coverage.c",
64         "allbacks.vertex_array.disable_vertex_attrib_array");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018618,
67         "dEQP-GLES31.functional.debug.negative_cover",
68         "age.callbacks.vertex_array.gen_vertex_arrays");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018619,
71         "dEQP-GLES31.functional.debug.negative_cover",
72         "age.callbacks.vertex_array.bind_vertex_array");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018620,
75         "dEQP-GLES31.functional.debug.negative_coverag",
76         "e.callbacks.vertex_array.delete_vertex_arrays");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018621,
79         "dEQP-GLES31.functional.debug.negative_coverag",
80         "e.callbacks.vertex_array.vertex_attrib_divisor");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018622,
83         "dEQP-GLES31.functional.debug.negative_co",
84         "verage.callbacks.vertex_array.draw_arrays");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018623,
87         "dEQP-GLES31.functional.debug.negative_coverage.c",
88         "allbacks.vertex_array.draw_arrays_invalid_program");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018624,
91         "dEQP-GLES31.functional.debug.negative_coverage.call",
92         "backs.vertex_array.draw_arrays_incomplete_primitive");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018625,
95         "dEQP-GLES31.functional.debug.negative_cov",
96         "erage.callbacks.vertex_array.draw_elements");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018626,
99         "dEQP-GLES31.functional.debug.negative_coverage.",
100         "callbacks.vertex_array.draw_elements_base_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018627,
103         "dEQP-GLES31.functional.debug.negative_coverage.callbacks.ve",
104         "rtex_array.draw_elements_base_vertex_primitive_mode_mismatch");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018628,
107         "dEQP-GLES31.functional.debug.negative_coverage.ca",
108         "llbacks.vertex_array.draw_elements_invalid_program");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018629,
111         "dEQP-GLES31.functional.debug.negative_coverage.callb",
112         "acks.vertex_array.draw_elements_incomplete_primitive");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018630,
115         "dEQP-GLES31.functional.debug.negative_coverag",
116         "e.callbacks.vertex_array.draw_arrays_instanced");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018631,
119         "dEQP-GLES31.functional.debug.negative_coverage.callba",
120         "cks.vertex_array.draw_arrays_instanced_invalid_program");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018632,
123         "dEQP-GLES31.functional.debug.negative_coverage.callbacks",
124         ".vertex_array.draw_arrays_instanced_incomplete_primitive");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018633,
127         "dEQP-GLES31.functional.debug.negative_coverage",
128         ".callbacks.vertex_array.draw_elements_instanced");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018634,
131         "dEQP-GLES31.functional.debug.negative_coverage.callbac",
132         "ks.vertex_array.draw_elements_instanced_invalid_program");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018635,
135         "dEQP-GLES31.functional.debug.negative_coverage.callbacks.",
136         "vertex_array.draw_elements_instanced_incomplete_primitive");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018636,
139         "dEQP-GLES31.functional.debug.negative_coverage.callb",
140         "acks.vertex_array.draw_elements_instanced_base_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018637,
143         "dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_",
144         "array.draw_elements_instanced_base_vertex_primitive_mode_mismatch");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018638,
147         "dEQP-GLES31.functional.debug.negative_covera",
148         "ge.callbacks.vertex_array.draw_range_elements");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018639,
151         "dEQP-GLES31.functional.debug.negative_coverage.callb",
152         "acks.vertex_array.draw_range_elements_invalid_program");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018640,
155         "dEQP-GLES31.functional.debug.negative_coverage.callback",
156         "s.vertex_array.draw_range_elements_incomplete_primitive");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018641,
159         "dEQP-GLES31.functional.debug.negative_coverage.cal",
160         "lbacks.vertex_array.draw_range_elements_base_vertex");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018642,
163         "dEQP-GLES31.functional.debug.negative_coverage.callbacks.verte",
164         "x_array.draw_range_elements_base_vertex_primitive_mode_mismatch");
165