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 "../Deqpgles2BaseFunc.h" 19#include "../ActsDeqpgles20003TestSuite.h" 20#include "shrinkdefine.h" 21 22using namespace std; 23using namespace testing::ext; 24using namespace OHOS; 25 26static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002405, 27 "dEQP-GLES2.functional.shaders.scoping.valid", 28 ".local_variable_hides_global_variable_vertex"); 29 30static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002406, 31 "dEQP-GLES2.functional.shaders.scoping.valid.", 32 "local_variable_hides_global_variable_fragment"); 33 34static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002407, 35 "dEQP-GLES2.functional.shaders.scoping.valid", 36 ".block_variable_hides_local_variable_vertex"); 37 38static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002408, 39 "dEQP-GLES2.functional.shaders.scoping.valid.", 40 "block_variable_hides_local_variable_fragment"); 41 42static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002409, 43 "dEQP-GLES2.functional.shaders.scoping.valid", 44 ".block_variable_hides_global_variable_vertex"); 45 46static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002410, 47 "dEQP-GLES2.functional.shaders.scoping.valid.", 48 "block_variable_hides_global_variable_fragment"); 49 50static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002411, 51 "dEQP-GLES2.functional.shaders.scoping.valid.for_i", 52 "nit_statement_variable_hides_local_variable_vertex"); 53 54static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002412, 55 "dEQP-GLES2.functional.shaders.scoping.valid.for_in", 56 "it_statement_variable_hides_local_variable_fragment"); 57 58static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002413, 59 "dEQP-GLES2.functional.shaders.scoping.valid.whil", 60 "e_condition_variable_hides_local_variable_vertex"); 61 62static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002414, 63 "dEQP-GLES2.functional.shaders.scoping.valid.while", 64 "_condition_variable_hides_local_variable_fragment"); 65 66static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002415, 67 "dEQP-GLES2.functional.shaders.scoping.valid.for_in", 68 "it_statement_variable_hides_global_variable_vertex"); 69 70static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002416, 71 "dEQP-GLES2.functional.shaders.scoping.valid.for_ini", 72 "t_statement_variable_hides_global_variable_fragment"); 73 74static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002417, 75 "dEQP-GLES2.functional.shaders.scoping.valid.whil", 76 "e_condition_variable_hides_global_variable_vertex"); 77 78static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002418, 79 "dEQP-GLES2.functional.shaders.scoping.valid.while", 80 "_condition_variable_hides_global_variable_fragment"); 81 82static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002419, 83 "dEQP-GLES2.functional.shaders.scoping.valid", 84 ".variable_in_if_hides_global_variable_vertex"); 85 86static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002420, 87 "dEQP-GLES2.functional.shaders.scoping.valid.", 88 "variable_in_if_hides_global_variable_fragment"); 89 90static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002421, 91 "dEQP-GLES2.functional.shaders.scoping.valid.varia", 92 "ble_from_outer_scope_visible_in_initializer_vertex"); 93 94static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002422, 95 "dEQP-GLES2.functional.shaders.scoping.valid.variab", 96 "le_from_outer_scope_visible_in_initializer_fragment"); 97 98static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002423, 99 "dEQP-GLES2.functional.shaders.scoping.valid", 100 ".local_int_variable_hides_struct_type_vertex"); 101 102static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002424, 103 "dEQP-GLES2.functional.shaders.scoping.valid.", 104 "local_int_variable_hides_struct_type_fragment"); 105 106static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002425, 107 "dEQP-GLES2.functional.shaders.scoping.valid.l", 108 "ocal_struct_variable_hides_struct_type_vertex"); 109 110static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002426, 111 "dEQP-GLES2.functional.shaders.scoping.valid.lo", 112 "cal_struct_variable_hides_struct_type_fragment"); 113 114static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002427, 115 "dEQP-GLES2.functional.shaders.scoping.va", 116 "lid.local_variable_hides_function_vertex"); 117 118static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002428, 119 "dEQP-GLES2.functional.shaders.scoping.val", 120 "id.local_variable_hides_function_fragment"); 121 122static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002429, 123 "dEQP-GLES2.functional.shaders.scoping.valid.f", 124 "unction_parameter_hides_global_variable_vertex"); 125 126static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002430, 127 "dEQP-GLES2.functional.shaders.scoping.valid.fu", 128 "nction_parameter_hides_global_variable_fragment"); 129 130static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002431, 131 "dEQP-GLES2.functional.shaders.scoping.valid", 132 ".function_parameter_hides_struct_type_vertex"); 133 134static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002432, 135 "dEQP-GLES2.functional.shaders.scoping.valid.", 136 "function_parameter_hides_struct_type_fragment"); 137 138static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002433, 139 "dEQP-GLES2.functional.shaders.scoping.vali", 140 "d.function_parameter_hides_function_vertex"); 141 142static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002434, 143 "dEQP-GLES2.functional.shaders.scoping.valid", 144 ".function_parameter_hides_function_fragment"); 145 146static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002435, 147 "dEQP-GLES2.functional.shaders.scoping.valid.local_va", 148 "riable_in_inner_scope_hides_function_parameter_vertex"); 149 150static SHRINK_HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002436, 151 "dEQP-GLES2.functional.shaders.scoping.valid.local_var", 152 "iable_in_inner_scope_hides_function_parameter_fragment"); 153