diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_invalid_function_definitionsTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_invalid_function_definitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..92a1a964f850bc821ff8e802273e1083f609e86e --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_invalid_function_definitionsTestCase.cpp @@ -0,0 +1,886 @@ +/* + * 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 "../ActsDeqpgles20001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000237, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000237 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000237 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000237 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000238, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000238 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000238 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000238 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000239, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000239 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000239 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000239 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000240, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000240 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000240 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000240 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000241, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000241 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000241 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000241 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000242, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000242 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000242 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000242 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000243, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000243 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000243 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000243 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000244, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000244 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000244 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000244 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000245, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000245 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_5_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000245 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000245 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000246, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000246 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_5_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000246 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000246 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000247, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000247 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_6_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000247 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000247 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000248, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000248 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_6_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000248 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000248 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000249, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000249 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_7_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000249 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000249 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000250, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000250 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_7_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000250 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000250 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000251, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000251 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.in" + "valid_function_definitions.arguments_8_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000251 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000251 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000252, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000252 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inv" + "alid_function_definitions.arguments_8_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000252 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000252 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000253, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000253 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inval" + "id_function_definitions.unique_param_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000253 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000253 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000254, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000254 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invali" + "d_function_definitions.unique_param_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000254 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000254 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000255, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000255 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inva" + "lid_function_definitions.argument_list_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000255 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000255 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000256, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000256 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inval" + "id_function_definitions.argument_list_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000256 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000256 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000257, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000257 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inva" + "lid_function_definitions.argument_list_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000257 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000257 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000258, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000258 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inval" + "id_function_definitions.argument_list_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000258 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000258 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000259, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000259 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inva" + "lid_function_definitions.argument_list_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000259 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000259 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000260, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000260 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.inval" + "id_function_definitions.argument_list_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000260 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000260 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000261, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000261 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_" + "function_definitions.no_closing_parenthesis_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000261 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000261 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000262, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000262 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_f" + "unction_definitions.no_closing_parenthesis_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000262 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000262 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000263, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000263 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_" + "function_definitions.no_closing_parenthesis_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000263 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000263 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000264, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000264 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_f" + "unction_definitions.no_closing_parenthesis_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000264 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000264 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000265, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000265 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_" + "function_definitions.no_closing_parenthesis_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000265 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000265 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000266, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000266 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_f" + "unction_definitions.no_closing_parenthesis_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000266 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000266 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000267, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000267 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_" + "function_definitions.no_closing_parenthesis_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000267 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000267 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000268, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000268 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.invalid_f" + "unction_definitions.no_closing_parenthesis_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000268 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000268 end"; +}