diff --git a/graphic/vkgl/src/deqpgles3/functional/Deqpgles3declarations_invalid_declarationsTestCase.cpp b/graphic/vkgl/src/deqpgles3/functional/Deqpgles3declarations_invalid_declarationsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1df4e4d912ab76697e25c6ed7079aff52cb97c68 --- /dev/null +++ b/graphic/vkgl/src/deqpgles3/functional/Deqpgles3declarations_invalid_declarationsTestCase.cpp @@ -0,0 +1,1480 @@ +/* + * 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 "../Deqpgles3BaseFunc.h" +#include "../ActsDeqpgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002792, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002792 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declaratio" + "ns.invalid_declarations.in_in_vertex_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002792 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002792 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002793, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002793 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declaration" + "s.invalid_declarations.out_in_vertex_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002793 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002793 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002794, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002794 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declaration" + "s.invalid_declarations.in_in_fragment_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002794 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002794 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002795, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002795 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations" + ".invalid_declarations.out_in_fragment_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002795 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002795 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002796, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002796 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations." + "invalid_declarations.uniform_in_vertex_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002796 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002796 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002797, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002797 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.i" + "nvalid_declarations.uniform_in_fragment_main", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002797 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002797 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002798, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002798 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inv" + "alid_declarations.uniform_block_in_main_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002798 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002798 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002799, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002799 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inva" + "lid_declarations.uniform_block_in_main_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002799 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002799 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002800, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002800 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declaration" + "s.invalid_declarations.invariant_attribute", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002800 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002800 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002801, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002801 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declaratio" + "ns.invalid_declarations.invariant_uniform", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002801 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002801 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002802, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002802 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inval" + "id_declarations.invariant_uniform_block_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002802 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002802 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002803, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002803 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invali" + "d_declarations.invariant_uniform_block_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002803 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002803 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002804, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002804 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inval" + "id_declarations.invariant_uniform_block_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002804 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002804 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002805, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002805 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invali" + "d_declarations.invariant_uniform_block_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002805 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002805 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002806, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002806 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid" + "_declarations.uniform_block_layout_qualifier_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002806 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002806 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002807, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002807 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_" + "declarations.uniform_block_layout_qualifier_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002807 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002807 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002808, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002808 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_member_layout_qualifier_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002808 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002808 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002809, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002809 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_member_layout_qualifier_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002809 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002809 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002810, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002810 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_nested_struct_definition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002810 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002810 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002811, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002811 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_nested_struct_definition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002811 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002811 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002812, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002812 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.in" + "valid_declarations.nested_uniform_block_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002812 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002812 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002813, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002813 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inv" + "alid_declarations.nested_uniform_block_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002813 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002813 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002814, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002814 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inva" + "lid_declarations.uniform_block_sampler_2d_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002814 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002814 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002815, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002815 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inval" + "id_declarations.uniform_block_sampler_2d_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002815 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002815 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002816, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002816 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inval" + "id_declarations.uniform_block_sampler_cube_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002816 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002816 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002817, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002817 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invali" + "d_declarations.uniform_block_sampler_cube_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002817 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002817 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002818, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002818 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_missing_member_semicolon_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002818 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002818 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002819, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002819 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_missing_member_semicolon_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002819 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002819 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002820, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002820 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_de" + "clarations.uniform_block_missing_end_semicolon_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002820 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002820 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002821, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002821 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_missing_end_semicolon_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002821 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002821 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002822, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002822 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_duplicate_member_name_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002822 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002822 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002823, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002823 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_member_name_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002823 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002823 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002824, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002824 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_duplicate_member_name_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002824 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002824 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002825, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002825 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_member_name_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002825 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002825 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002826, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002826 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_dec" + "larations.uniform_block_duplicate_member_name_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002826 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002826 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002827, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002827 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_member_name_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002827 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002827 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002828, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002828 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_d" + "eclarations.uniform_block_duplicate_block_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002828 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002828 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002829, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002829 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_de" + "clarations.uniform_block_duplicate_block_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002829 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002829 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002830, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002830 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_instance_name_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002830 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002830 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002831, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002831 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decla" + "rations.uniform_block_duplicate_instance_name_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002831 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002831 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002832, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002832 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_instance_name_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002832 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002832 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002833, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002833 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decla" + "rations.uniform_block_duplicate_instance_name_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002833 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002833 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002834, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002834 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decl" + "arations.uniform_block_duplicate_instance_name_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002834 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002834 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002835, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002835 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_decla" + "rations.uniform_block_duplicate_instance_name_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002835 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002835 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002836, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002836 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_declar" + "ations.uniform_block_array_without_instance_name_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002836 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002836 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002837, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002837 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_declara" + "tions.uniform_block_array_without_instance_name_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002837 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002837 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002838, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002838 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_declar" + "ations.uniform_block_array_without_instance_name_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002838 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002838 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002839, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002839 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.invalid_declara" + "tions.uniform_block_array_without_instance_name_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002839 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002839 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002840, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002840 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations." + "invalid_declarations.uniform_block_in_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002840 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002840 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002841, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002841 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.i" + "nvalid_declarations.uniform_block_in_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002841 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002841 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002842, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002842 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.i" + "nvalid_declarations.uniform_block_out_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002842 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002842 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002843, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002843 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.in" + "valid_declarations.uniform_block_out_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002843 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002843 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002844, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002844 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.in" + "valid_declarations.uniform_block_const_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002844 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002844 end"; +} + +static HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002845, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002845 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES3.functional.shaders.declarations.inv" + "alid_declarations.uniform_block_const_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002845 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002845 end"; +}