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 "../Deqpgles3BaseFunc.h" 19 #include "../ActsDeqpgles30043TestSuite.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(ActsDeqpgles30043TestSuite, TestCase_042059, 27 "dEQP-GLES3.functional.negat", 28 "ive_api.shader.create_shader"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042060, 31 "dEQP-GLES3.functional.negat", 32 "ive_api.shader.shader_source"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042061, 35 "dEQP-GLES3.functional.negati", 36 "ve_api.shader.compile_shader"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042062, 39 "dEQP-GLES3.functional.negat", 40 "ive_api.shader.delete_shader"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042063, 43 "dEQP-GLES3.functional.negat", 44 "ive_api.shader.shader_binary"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042064, 47 "dEQP-GLES3.functional.negat", 48 "ive_api.shader.attach_shader"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042065, 51 "dEQP-GLES3.functional.negat", 52 "ive_api.shader.detach_shader"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042066, 55 "dEQP-GLES3.functional.negat", 56 "ive_api.shader.link_program"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042067, 59 "dEQP-GLES3.functional.nega", 60 "tive_api.shader.use_program"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042068, 63 "dEQP-GLES3.functional.negati", 64 "ve_api.shader.delete_program"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042069, 67 "dEQP-GLES3.functional.negativ", 68 "e_api.shader.validate_program"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042070, 71 "dEQP-GLES3.functional.negative", 72 "_api.shader.get_program_binary"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042071, 75 "dEQP-GLES3.functional.negati", 76 "ve_api.shader.program_binary"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042072, 79 "dEQP-GLES3.functional.negative", 80 "_api.shader.program_parameteri"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042073, 83 "dEQP-GLES3.functional.negat", 84 "ive_api.shader.gen_samplers"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042074, 87 "dEQP-GLES3.functional.negat", 88 "ive_api.shader.bind_sampler"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042075, 91 "dEQP-GLES3.functional.negati", 92 "ve_api.shader.delete_samplers"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042076, 95 "dEQP-GLES3.functional.negative_a", 96 "pi.shader.get_sampler_parameteriv"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042077, 99 "dEQP-GLES3.functional.negative_a", 100 "pi.shader.get_sampler_parameterfv"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042078, 103 "dEQP-GLES3.functional.negative", 104 "_api.shader.sampler_parameteri"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042079, 107 "dEQP-GLES3.functional.negative", 108 "_api.shader.sampler_parameteriv"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042080, 111 "dEQP-GLES3.functional.negative", 112 "_api.shader.sampler_parameterf"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042081, 115 "dEQP-GLES3.functional.negative", 116 "_api.shader.sampler_parameterfv"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042082, 119 "dEQP-GLES3.functional.negative", 120 "_api.shader.get_attrib_location"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042083, 123 "dEQP-GLES3.functional.negative_", 124 "api.shader.get_uniform_location"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042084, 127 "dEQP-GLES3.functional.negative_", 128 "api.shader.bind_attrib_location"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042085, 131 "dEQP-GLES3.functional.negative_", 132 "api.shader.uniform_block_binding"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042086, 135 "dEQP-GLES3.functional.negative_ap", 136 "i.shader.uniformf_invalid_program"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042087, 139 "dEQP-GLES3.functional.negative_api", 140 ".shader.uniformf_incompatible_type"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042088, 143 "dEQP-GLES3.functional.negative_ap", 144 "i.shader.uniformf_invalid_location"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042089, 147 "dEQP-GLES3.functional.negative_ap", 148 "i.shader.uniformfv_invalid_program"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042090, 151 "dEQP-GLES3.functional.negative_api", 152 ".shader.uniformfv_incompatible_type"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042091, 155 "dEQP-GLES3.functional.negative_api", 156 ".shader.uniformfv_invalid_location"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042092, 159 "dEQP-GLES3.functional.negative_a", 160 "pi.shader.uniformfv_invalid_count"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042093, 163 "dEQP-GLES3.functional.negative_ap", 164 "i.shader.uniformi_invalid_program"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042094, 167 "dEQP-GLES3.functional.negative_api", 168 ".shader.uniformi_incompatible_type"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042095, 171 "dEQP-GLES3.functional.negative_ap", 172 "i.shader.uniformi_invalid_location"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042096, 175 "dEQP-GLES3.functional.negative_ap", 176 "i.shader.uniformiv_invalid_program"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042097, 179 "dEQP-GLES3.functional.negative_api", 180 ".shader.uniformiv_incompatible_type"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042098, 183 "dEQP-GLES3.functional.negative_api", 184 ".shader.uniformiv_invalid_location"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042099, 187 "dEQP-GLES3.functional.negative_a", 188 "pi.shader.uniformiv_invalid_count"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042100, 191 "dEQP-GLES3.functional.negative_ap", 192 "i.shader.uniformui_invalid_program"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042101, 195 "dEQP-GLES3.functional.negative_api", 196 ".shader.uniformui_incompatible_type"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042102, 199 "dEQP-GLES3.functional.negative_api", 200 ".shader.uniformui_invalid_location"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042103, 203 "dEQP-GLES3.functional.negative_api", 204 ".shader.uniformuiv_invalid_program"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042104, 207 "dEQP-GLES3.functional.negative_api.", 208 "shader.uniformuiv_incompatible_type"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042105, 211 "dEQP-GLES3.functional.negative_api", 212 ".shader.uniformuiv_invalid_location"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042106, 215 "dEQP-GLES3.functional.negative_ap", 216 "i.shader.uniformuiv_invalid_count"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042107, 219 "dEQP-GLES3.functional.negative_api.sh", 220 "ader.uniform_matrixfv_invalid_program"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042108, 223 "dEQP-GLES3.functional.negative_api.sha", 224 "der.uniform_matrixfv_incompatible_type"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042109, 227 "dEQP-GLES3.functional.negative_api.sh", 228 "ader.uniform_matrixfv_invalid_location"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042110, 231 "dEQP-GLES3.functional.negative_api.s", 232 "hader.uniform_matrixfv_invalid_count"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042111, 235 "dEQP-GLES3.functional.negative_a", 236 "pi.shader.gen_transform_feedbacks"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042112, 239 "dEQP-GLES3.functional.negative_a", 240 "pi.shader.bind_transform_feedback"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042113, 243 "dEQP-GLES3.functional.negative_api", 244 ".shader.delete_transform_feedbacks"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042114, 247 "dEQP-GLES3.functional.negative_ap", 248 "i.shader.begin_transform_feedback"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042115, 251 "dEQP-GLES3.functional.negative_ap", 252 "i.shader.pause_transform_feedback"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042116, 255 "dEQP-GLES3.functional.negative_ap", 256 "i.shader.resume_transform_feedback"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042117, 259 "dEQP-GLES3.functional.negative_a", 260 "pi.shader.end_transform_feedback"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042118, 263 "dEQP-GLES3.functional.negative_api.s", 264 "hader.get_transform_feedback_varying"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles30043TestSuite, TestCase_042119, 267 "dEQP-GLES3.functional.negative_api", 268 ".shader.transform_feedback_varyings"); 269