From fb062fab51d0e7a5e8811f088afc9bd6b3ffbf6b Mon Sep 17 00:00:00 2001 From: wangshi Date: Tue, 5 Jul 2022 08:36:23 +0800 Subject: [PATCH] add depq2 testcase Signed-off-by: wangshi --- .../Deqpgles2common_functions_modTestCase.cpp | 778 ++++++++++++++++++ .../Deqpgles2depth_stencil_randomTestCase.cpp | 697 ++++++++++++++++ 2 files changed, 1475 insertions(+) create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_modTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2depth_stencil_randomTestCase.cpp diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_modTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_modTestCase.cpp new file mode 100644 index 000000000..dd6565165 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_modTestCase.cpp @@ -0,0 +1,778 @@ +/* + * 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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006132, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006132 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.mod.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006132 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006132 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006133, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006133 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.mod.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006133 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006133 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006134, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006134 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006134 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006134 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006135, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006135 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.mod.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006135 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006135 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006136, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006136 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.mediump_vec2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006136 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006136 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006137, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006137 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.mod.mediump_vec2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006137 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006137 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006138, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006138 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.mod.highp_vec2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006138 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006138 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006139, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006139 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.highp_vec2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006139 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006139 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006140, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006140 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.mediump_vec3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006140 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006140 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006141, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006141 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.mod.mediump_vec3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006141 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006141 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006142, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006142 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.mod.highp_vec3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006142 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006142 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006143, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006143 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.highp_vec3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006143 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006143 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006144, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006144 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.mediump_vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006144 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006144 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006145, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006145 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.mod.mediump_vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006145 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006145 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006146, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006146 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.mod.highp_vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006146 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006146 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006147, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006147 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.mod.highp_vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006147 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006147 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006148, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006148 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.mediump_vec2_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006148 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006148 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006149, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006149 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.comm" + "on_functions.mod.mediump_vec2_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006149 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006149 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006150, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006150 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.mod.highp_vec2_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006150 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006150 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006151, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006151 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.highp_vec2_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006151 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006151 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006152, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006152 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.mediump_vec3_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006152 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006152 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006153, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006153 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.comm" + "on_functions.mod.mediump_vec3_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006153 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006153 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006154, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006154 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.mod.highp_vec3_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006154 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006154 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006155, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006155 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.highp_vec3_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006155 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006155 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006156, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006156 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.mediump_vec4_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006156 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006156 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006157, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006157 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.comm" + "on_functions.mod.mediump_vec4_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006157 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006157 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006158, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006158 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.mod.highp_vec4_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006158 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006158 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006159, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006159 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.mod.highp_vec4_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_006159 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006159 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2depth_stencil_randomTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2depth_stencil_randomTestCase.cpp new file mode 100644 index 000000000..7f48a6c8d --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2depth_stencil_randomTestCase.cpp @@ -0,0 +1,697 @@ +/* + * 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 "../ActsDeqpgles20012TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011110, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011110 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011110 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011110 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011111, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011111 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011111 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011111 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011112, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011112 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011112 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011112 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011113, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011113 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011113 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011113 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011114, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011114 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011114 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011114 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011115 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011116 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011117 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011118 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragme" + "nt_ops.depth_stencil.random.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011119 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.10", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011120 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011121, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011121 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.11", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011121 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011121 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011122, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011122 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.12", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011122 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011122 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011123, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011123 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.13", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011123 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011123 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011124, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011124 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.14", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011124 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011124 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011125, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011125 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.15", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011125 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011125 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011126, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011126 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011126 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011126 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011127, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011127 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.17", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011127 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011127 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011128, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011128 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.18", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011128 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011128 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011129, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011129 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.19", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011129 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011129 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011130, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011130 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.20", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011130 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011130 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011131, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011131 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.21", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011131 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011131 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011132, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011132 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.22", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011132 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011132 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011133, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011133 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.23", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011133 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011133 end"; +} + +static HWTEST_F(ActsDeqpgles20012TestSuite, TestCase_011134, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011134 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fragmen" + "t_ops.depth_stencil.random.24", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20012TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20012TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20012TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20012TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20012TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011134 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011134 end"; +} -- GitLab