diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_basic_arrayTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_basic_arrayTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..655c28613d0bbc57b11044ff2a5ac6af138d1469 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_basic_arrayTestCase.cpp @@ -0,0 +1,670 @@ +/* + * 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 "../ActsDeqpgles20015TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014043, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014043 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014043 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014043 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014044, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014044 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014044 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014044 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014045, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014045 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.float_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014045 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014045 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014046, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014046 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014046 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014046 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014047, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014047 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014047 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014047 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014048, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014048 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.vec4_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014048 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014048 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014049, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014049 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.mat4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014049 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014049 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014050, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014050 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.mat4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014050 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014050 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014051, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014051 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.mat4_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014051 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014051 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014052, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014052 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014052 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014052 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014053, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014053 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014053 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014053 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014054, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014054 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_ap" + "i.info_query.basic_array.int_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014054 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014054 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014055, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014055 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.ivec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014055 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014055 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014056, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014056 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.ivec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014056 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014056 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014057, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014057 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.ivec4_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014057 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014057 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014058, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014058 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.bool_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014058 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014058 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014059, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014059 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.bool_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014059 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014059 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014060, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014060 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.bool_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014060 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014060 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014061, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014061 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.basic_array.bvec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014061 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014061 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014062, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014062 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.bvec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014062 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014062 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014063, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014063 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.basic_array.bvec4_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014063 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014063 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014064, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014064 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.in" + "fo_query.basic_array.sampler2D_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014064 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014064 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014065, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014065 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.inf" + "o_query.basic_array.sampler2D_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014065 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014065 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014066, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014066 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.basic_array.sampler2D_both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014066 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014066 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_conditionalsTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_conditionalsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..79106b2c771c766b9ecd1c493734b99b31a73bce --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_conditionalsTestCase.cpp @@ -0,0 +1,670 @@ +/* + * 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_000399, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000399 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.c" + "onditionals.unterminated_nested_blocks_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_000399 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000399 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000400, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000400 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.co" + "nditionals.unterminated_nested_blocks_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_000400 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000400 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000401, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000401 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.conditionals.ifdef_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_000401 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000401 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000402, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000402 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.conditionals.ifdef_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_000402 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000402 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000403, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000403 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.conditionals.ifdef_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_000403 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000403 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000404, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000404 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.conditionals.ifdef_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_000404 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000404 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000405, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000405 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.conditionals.ifdef_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_000405 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000405 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000406, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000406 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.conditionals.ifdef_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_000406 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000406 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000407, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000407 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.conditionals.invalid_ifdef_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_000407 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000407 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000408, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000408 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.conditionals.invalid_ifdef_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_000408 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000408 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000409, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000409 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.conditionals.ifndef_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_000409 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000409 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000410, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000410 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.conditionals.ifndef_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_000410 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000410 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000411, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000411 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.conditionals.ifndef_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_000411 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000411 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000412, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000412 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.conditionals.ifndef_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_000412 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000412 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000413, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000413 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.conditionals.invalid_ifndef_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_000413 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000413 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000414, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000414 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.conditionals.invalid_ifndef_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_000414 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000414 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000415, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000415 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.co" + "nditionals.mixed_conditional_inclusion_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_000415 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000415 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000416, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000416 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.con" + "ditionals.mixed_conditional_inclusion_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_000416 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000416 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000417, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000417 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.conditionals.nested_if_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_000417 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000417 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000418, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000418 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.conditionals.nested_if_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_000418 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000418 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000419, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000419 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.conditionals.nested_if_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_000419 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000419 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000420, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000420 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.conditionals.nested_if_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_000420 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000420 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000421, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000421 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.conditionals.nested_if_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_000421 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000421 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000422, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000422 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.conditionals.nested_if_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_000422 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000422 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_directiveTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_directiveTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..83023e4aa71e452f86c5a0b4deeb9409bd88aa91 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_directiveTestCase.cpp @@ -0,0 +1,670 @@ +/* + * 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_000423, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000423 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.pre" + "processor.directive.version_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_000423 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000423 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000424, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000424 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prep" + "rocessor.directive.version_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_000424 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000424 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000425, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000425 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.directive.version_is_less_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_000425 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000425 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000426, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000426 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.directive.version_is_less_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_000426 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000426 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000427, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000427 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.directive.version_is_more_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_000427 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000427 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000428, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000428 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.directive.version_is_more_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_000428 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000428 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000429, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000429 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.directive.version_missing_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_000429 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000429 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000430, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000430 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.directive.version_missing_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_000430 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000430 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000431, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000431 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.d" + "irective.version_not_first_statement_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_000431 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000431 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000432, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000432 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.di" + "rective.version_not_first_statement_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_000432 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000432 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000433, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000433 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.d" + "irective.version_not_first_statement_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_000433 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000433 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000434, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000434 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor.di" + "rective.version_not_first_statement_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_000434 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000434 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000435, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000435 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.directive.version_invalid_token_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_000435 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000435 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000436, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000436 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor" + ".directive.version_invalid_token_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_000436 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000436 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000437, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000437 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.directive.version_invalid_token_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_000437 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000437 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000438, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000438 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor" + ".directive.version_invalid_token_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_000438 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000438 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000439, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000439 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.directive.invalid_version_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_000439 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000439 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000440, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000440 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.directive.invalid_version_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_000440 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000440 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000441, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000441 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.directive.additional_tokens_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_000441 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000441 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000442, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000442 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.directive.additional_tokens_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_000442 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000442 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000443, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000443 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocess" + "or.directive.error_with_no_tokens_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_000443 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000443 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000444, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000444 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.directive.error_with_no_tokens_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_000444 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000444 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000445, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000445 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.pr" + "eprocessor.directive.error_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_000445 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000445 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000446, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000446 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.pre" + "processor.directive.error_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_000446 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000446 end"; +}