/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include "../Deqpgles2BaseFunc.h" #include "../ActsDeqpgles20003TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002405, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002405 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".local_variable_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002405 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002405 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002406, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002406 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "local_variable_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002406 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002406 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002407, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002407 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".block_variable_hides_local_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002407 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002407 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002408, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002408 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "block_variable_hides_local_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002408 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002408 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002409, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002409 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".block_variable_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002409 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002409 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002410, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002410 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "block_variable_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002410 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002410 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002411, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002411 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.for_i" "nit_statement_variable_hides_local_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002411 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002411 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002412, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002412 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.for_in" "it_statement_variable_hides_local_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002412 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002412 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002413, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002413 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.whil" "e_condition_variable_hides_local_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002413 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002413 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002414, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002414 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.while" "_condition_variable_hides_local_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002414 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002414 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002415, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002415 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.for_in" "it_statement_variable_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002415 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002415 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002416, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002416 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.for_ini" "t_statement_variable_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002416 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002416 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002417, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002417 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.whil" "e_condition_variable_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002417 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002417 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002418, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002418 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.while" "_condition_variable_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002418 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002418 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002419, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002419 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".variable_in_if_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002419 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002419 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002420, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002420 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "variable_in_if_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002420 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002420 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002421, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002421 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.varia" "ble_from_outer_scope_visible_in_initializer_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002421 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002421 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002422, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002422 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.variab" "le_from_outer_scope_visible_in_initializer_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002422 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002422 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002423, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002423 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".local_int_variable_hides_struct_type_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002423 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002423 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002424, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002424 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "local_int_variable_hides_struct_type_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002424 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002424 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002425, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002425 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.l" "ocal_struct_variable_hides_struct_type_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002425 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002425 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002426, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002426 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.lo" "cal_struct_variable_hides_struct_type_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002426 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002426 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002427, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002427 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.va" "lid.local_variable_hides_function_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002427 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002427 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002428, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002428 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.val" "id.local_variable_hides_function_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002428 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002428 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002429, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002429 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.f" "unction_parameter_hides_global_variable_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002429 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002429 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002430, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002430 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.fu" "nction_parameter_hides_global_variable_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002430 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002430 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002431, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002431 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".function_parameter_hides_struct_type_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002431 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002431 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002432, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002432 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid." "function_parameter_hides_struct_type_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002432 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002432 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002433, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002433 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.vali" "d.function_parameter_hides_function_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002433 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002433 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002434, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002434 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid" ".function_parameter_hides_function_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002434 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002434 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002435, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002435 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.local_va" "riable_in_inner_scope_hides_function_parameter_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002435 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002435 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002436, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002436 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.scoping.valid.local_var" "iable_in_inner_scope_hides_function_parameter_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002436 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002436 end"; }