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_018728, 27 "dEQP-GLES31.functional.debug.negative_coverage.callbac", 28 "ks.shader_function.bitfield_extract_invalid_value_type"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018729, 31 "dEQP-GLES31.functional.debug.negative_coverage.callbac", 32 "ks.shader_function.bitfield_extract_invalid_offset_type"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018730, 35 "dEQP-GLES31.functional.debug.negative_coverage.callba", 36 "cks.shader_function.bitfield_extract_invalid_bits_type"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018731, 39 "dEQP-GLES31.functional.debug.negative_coverage.callba", 40 "cks.shader_function.bitfield_insert_invalid_base_type"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018732, 43 "dEQP-GLES31.functional.debug.negative_coverage.callbac", 44 "ks.shader_function.bitfield_insert_invalid_insert_type"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018733, 47 "dEQP-GLES31.functional.debug.negative_coverage.callbac", 48 "ks.shader_function.bitfield_insert_invalid_offset_type"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018734, 51 "dEQP-GLES31.functional.debug.negative_coverage.callba", 52 "cks.shader_function.bitfield_insert_invalid_bits_type"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018735, 55 "dEQP-GLES31.functional.debug.negative_covera", 56 "ge.callbacks.shader_function.bitfield_reverse"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018736, 59 "dEQP-GLES31.functional.debug.negative_cov", 60 "erage.callbacks.shader_function.bit_count"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018737, 63 "dEQP-GLES31.functional.debug.negative_co", 64 "verage.callbacks.shader_function.find_msb"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018738, 67 "dEQP-GLES31.functional.debug.negative_co", 68 "verage.callbacks.shader_function.find_lsb"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018739, 71 "dEQP-GLES31.functional.debug.negative_coverage", 72 ".callbacks.shader_function.uadd_carry_invalid_x"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018740, 75 "dEQP-GLES31.functional.debug.negative_coverage", 76 ".callbacks.shader_function.uadd_carry_invalid_y"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018741, 79 "dEQP-GLES31.functional.debug.negative_coverage.c", 80 "allbacks.shader_function.uadd_carry_invalid_carry"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018742, 83 "dEQP-GLES31.functional.debug.negative_coverage.", 84 "callbacks.shader_function.usub_borrow_invalid_x"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018743, 87 "dEQP-GLES31.functional.debug.negative_coverage.", 88 "callbacks.shader_function.usub_borrow_invalid_y"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018744, 91 "dEQP-GLES31.functional.debug.negative_coverage.ca", 92 "llbacks.shader_function.usub_borrow_invalid_borrow"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018745, 95 "dEQP-GLES31.functional.debug.negative_coverage.c", 96 "allbacks.shader_function.umul_extended_invalid_x"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018746, 99 "dEQP-GLES31.functional.debug.negative_coverage.c", 100 "allbacks.shader_function.umul_extended_invalid_y"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018747, 103 "dEQP-GLES31.functional.debug.negative_coverage.ca", 104 "llbacks.shader_function.umul_extended_invalid_msb"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018748, 107 "dEQP-GLES31.functional.debug.negative_coverage.ca", 108 "llbacks.shader_function.umul_extended_invalid_lsb"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018749, 111 "dEQP-GLES31.functional.debug.negative_coverage.c", 112 "allbacks.shader_function.imul_extended_invalid_x"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018750, 115 "dEQP-GLES31.functional.debug.negative_coverage.c", 116 "allbacks.shader_function.imul_extended_invalid_y"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018751, 119 "dEQP-GLES31.functional.debug.negative_coverage.ca", 120 "llbacks.shader_function.imul_extended_invalid_msb"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018752, 123 "dEQP-GLES31.functional.debug.negative_coverage.ca", 124 "llbacks.shader_function.imul_extended_invalid_lsb"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018753, 127 "dEQP-GLES31.functional.debug.negative_covera", 128 "ge.callbacks.shader_function.frexp_invalid_x"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018754, 131 "dEQP-GLES31.functional.debug.negative_coverag", 132 "e.callbacks.shader_function.frexp_invalid_exp"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018755, 135 "dEQP-GLES31.functional.debug.negative_covera", 136 "ge.callbacks.shader_function.ldexp_invalid_x"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018756, 139 "dEQP-GLES31.functional.debug.negative_coverag", 140 "e.callbacks.shader_function.ldexp_invalid_exp"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018757, 143 "dEQP-GLES31.functional.debug.negative_cover", 144 "age.callbacks.shader_function.pack_unorm_4x8"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018758, 147 "dEQP-GLES31.functional.debug.negative_cover", 148 "age.callbacks.shader_function.pack_snorm_4x8"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018759, 151 "dEQP-GLES31.functional.debug.negative_covera", 152 "ge.callbacks.shader_function.unpack_snorm_4x8"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018760, 155 "dEQP-GLES31.functional.debug.negative_covera", 156 "ge.callbacks.shader_function.unpack_unorm_4x8"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018761, 159 "dEQP-GLES31.functional.debug.negative_coverage.cal", 160 "lbacks.shader_function.texture_size_invalid_sampler"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018762, 163 "dEQP-GLES31.functional.debug.negative_coverage.c", 164 "allbacks.shader_function.texture_size_invalid_lod"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018763, 167 "dEQP-GLES31.functional.debug.negative_coverag", 168 "e.callbacks.shader_function.texture_invalid_p"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018764, 171 "dEQP-GLES31.functional.debug.negative_coverage.callb", 172 "acks.shader_function.texture_invalid_bias_or_compare"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018765, 175 "dEQP-GLES31.functional.debug.negative_coverage.", 176 "callbacks.shader_function.texture_lod_invalid_p"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018766, 179 "dEQP-GLES31.functional.debug.negative_coverage.c", 180 "allbacks.shader_function.texture_lod_invalid_lod"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018767, 183 "dEQP-GLES31.functional.debug.negative_coverage.", 184 "callbacks.shader_function.texel_fetch_invalid_p"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018768, 187 "dEQP-GLES31.functional.debug.negative_coverage.ca", 188 "llbacks.shader_function.texel_fetch_invalid_sample"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018769, 191 "dEQP-GLES31.functional.debug.negative_cove", 192 "rage.callbacks.shader_function.emit_vertex"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018770, 195 "dEQP-GLES31.functional.debug.negative_cover", 196 "age.callbacks.shader_function.end_primitive"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018771, 199 "dEQP-GLES31.functional.debug.negative_cove", 200 "rage.callbacks.shader_function.texture_grad"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018772, 203 "dEQP-GLES31.functional.debug.negative_coverage.ca", 204 "llbacks.shader_function.texture_gather_sampler_2d"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018773, 207 "dEQP-GLES31.functional.debug.negative_coverage.callb", 208 "acks.shader_function.texture_gather_sampler_2d_array"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018774, 211 "dEQP-GLES31.functional.debug.negative_coverage.cal", 212 "lbacks.shader_function.texture_gather_sampler_cube"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018775, 215 "dEQP-GLES31.functional.debug.negative_coverage.callb", 216 "acks.shader_function.texture_gather_sampler_2d_shadow"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018776, 219 "dEQP-GLES31.functional.debug.negative_coverage.callback", 220 "s.shader_function.texture_gather_sampler_2d_array_shadow"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018777, 223 "dEQP-GLES31.functional.debug.negative_coverage.callba", 224 "cks.shader_function.texture_gather_sampler_cube_shadow"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018778, 227 "dEQP-GLES31.functional.debug.negative_coverage.callba", 228 "cks.shader_function.texture_gather_sampler_cube_array"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018779, 231 "dEQP-GLES31.functional.debug.negative_coverage.callbacks", 232 ".shader_function.texture_gather_sampler_cube_array_shadow"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018780, 235 "dEQP-GLES31.functional.debug.negative_coverage.callb", 236 "acks.shader_function.texture_gather_offset_sampler_2d"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018781, 239 "dEQP-GLES31.functional.debug.negative_coverage.callback", 240 "s.shader_function.texture_gather_offset_sampler_2d_array"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018782, 243 "dEQP-GLES31.functional.debug.negative_coverage.callbacks", 244 ".shader_function.texture_gather_offset_sampler_2d_shadow"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018783, 247 "dEQP-GLES31.functional.debug.negative_coverage.callbacks.sh", 248 "ader_function.texture_gather_offset_sampler_2d_array_shadow"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018784, 251 "dEQP-GLES31.functional.debug.negative_coverage.", 252 "callbacks.shader_function.texture_gather_offsets"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018785, 255 "dEQP-GLES31.functional.debug.negative_cov", 256 "erage.callbacks.shader_function.atomic_add"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018786, 259 "dEQP-GLES31.functional.debug.negative_cov", 260 "erage.callbacks.shader_function.atomic_min"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018787, 263 "dEQP-GLES31.functional.debug.negative_cov", 264 "erage.callbacks.shader_function.atomic_max"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018788, 267 "dEQP-GLES31.functional.debug.negative_cov", 268 "erage.callbacks.shader_function.atomic_and"); 269 270 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018789, 271 "dEQP-GLES31.functional.debug.negative_cov", 272 "erage.callbacks.shader_function.atomic_or"); 273 274 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018790, 275 "dEQP-GLES31.functional.debug.negative_cov", 276 "erage.callbacks.shader_function.atomic_xor"); 277 278 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018791, 279 "dEQP-GLES31.functional.debug.negative_covera", 280 "ge.callbacks.shader_function.atomic_exchange"); 281 282 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018792, 283 "dEQP-GLES31.functional.debug.negative_covera", 284 "ge.callbacks.shader_function.atomic_comp_swap"); 285 286 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018793, 287 "dEQP-GLES31.functional.debug.negative_coverage.c", 288 "allbacks.shader_function.interpolate_at_centroid"); 289 290 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018794, 291 "dEQP-GLES31.functional.debug.negative_coverage.", 292 "callbacks.shader_function.interpolate_at_sample"); 293 294 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018795, 295 "dEQP-GLES31.functional.debug.negative_coverage.", 296 "callbacks.shader_function.interpolate_at_offset"); 297 298 static SHRINK_HWTEST_F(ActsDeqpgles310019TestSuite, TestCase_018796, 299 "dEQP-GLES31.functional.debug.negative_", 300 "coverage.callbacks.shader_function.fma"); 301