diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_absTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_absTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d07df585b1e5cdb1d420652a6686b70904efa3da --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_absTestCase.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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006012, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006012 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.lowp_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_006012 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006012 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006013, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006013 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.lowp_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_006013 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006013 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006014, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006014 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.abs.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_006014 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006014 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006015, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006015 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.abs.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_006015 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006015 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006016, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006016 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006016 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006016 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006017, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006017 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.abs.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_006017 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006017 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006018, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006018 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.lowp_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_006018 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006018 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006019, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006019 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.lowp_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_006019 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006019 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006020, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006020 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006020 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006020 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006021, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006021 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.abs.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_006021 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006021 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006022, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006022 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.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_006022 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006022 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006023, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006023 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006023 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006023 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006024, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006024 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.lowp_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_006024 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006024 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006025, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006025 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.lowp_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_006025 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006025 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006026, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006026 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006026 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006026 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006027, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006027 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.abs.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_006027 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006027 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006028, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006028 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.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_006028 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006028 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006029, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006029 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006029 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006029 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006030, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006030 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.lowp_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_006030 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006030 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006031, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006031 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.lowp_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_006031 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006031 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006032, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006032 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006032 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006032 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006033, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006033 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.abs.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_006033 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006033 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006034, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006034 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.abs.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_006034 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006034 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006035, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006035 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.abs.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_006035 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006035 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_ceilTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_ceilTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..45d188d23ab8ee21795ee04f32a274942c0a4825 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_ceilTestCase.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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006084, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006084 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.lowp_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_006084 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006084 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006085, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006085 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.lowp_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_006085 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006085 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006086, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006086 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006086 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006086 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006087, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006087 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.ceil.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_006087 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006087 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006088, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006088 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.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_006088 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006088 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006089, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006089 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006089 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006089 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006090, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006090 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.ceil.lowp_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_006090 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006090 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006091, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006091 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.lowp_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_006091 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006091 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006092, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006092 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006092 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006092 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006093, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006093 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.ceil.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_006093 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006093 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006094, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006094 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.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_006094 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006094 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006095, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006095 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006095 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006095 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006096, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006096 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.ceil.lowp_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_006096 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006096 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006097, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006097 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.lowp_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_006097 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006097 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006098, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006098 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006098 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006098 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006099, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006099 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.ceil.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_006099 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006099 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006100, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006100 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.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_006100 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006100 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006101, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006101 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006101 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006101 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006102, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006102 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.ceil.lowp_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_006102 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006102 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006103, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006103 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.lowp_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_006103 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006103 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006104, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006104 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006104 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006104 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006105, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006105 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.ceil.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_006105 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006105 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006106, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006106 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.ceil.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_006106 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006106 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006107, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006107 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.ceil.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_006107 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006107 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_floorTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_floorTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1fcc429d5a1b70d490877122395c222f57f478b3 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_floorTestCase.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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006060, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006060 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.lowp_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_006060 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006060 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006061, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006061 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.lowp_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_006061 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006061 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006062, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006062 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.floor.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_006062 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006062 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006063, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006063 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.floor.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_006063 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006063 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006064, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006064 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006064 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006064 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006065, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006065 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.floor.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_006065 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006065 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006066, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006066 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.lowp_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_006066 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006066 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006067, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006067 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.lowp_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_006067 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006067 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006068, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006068 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006068 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006068 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006069, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006069 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.floor.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_006069 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006069 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006070, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006070 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.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_006070 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006070 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006071, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006071 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006071 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006071 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006072, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006072 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.lowp_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_006072 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006072 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006073, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006073 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.lowp_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_006073 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006073 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006074, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006074 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006074 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006074 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006075, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006075 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.floor.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_006075 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006075 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006076, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006076 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.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_006076 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006076 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006077, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006077 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006077 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006077 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006078, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006078 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.lowp_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_006078 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006078 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006079, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006079 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.lowp_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_006079 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006079 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006080, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006080 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006080 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006080 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006081, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006081 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.floor.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_006081 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006081 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006082, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006082 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.floor.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_006082 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006082 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006083, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006083 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.floor.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_006083 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006083 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_fractTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_fractTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..82012596c1192605b5c877e684b1445b797ed86a --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_fractTestCase.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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006108, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006108 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.lowp_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_006108 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006108 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006109, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006109 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.lowp_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_006109 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006109 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006110, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006110 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.fract.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_006110 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006110 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006111, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006111 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.com" + "mon_functions.fract.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_006111 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006111 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006112, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006112 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006112 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006112 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006113, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006113 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.fract.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_006113 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006113 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006114, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006114 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.lowp_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_006114 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006114 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.lowp_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_006115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006115 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006116 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.fract.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_006117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006117 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.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_006118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006118 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006119 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.lowp_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_006120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006120 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006121, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006121 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.lowp_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_006121 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006121 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006122, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006122 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006122 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006122 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006123, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006123 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.fract.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_006123 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006123 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006124, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006124 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.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_006124 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006124 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006125, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006125 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006125 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006125 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006126, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006126 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.lowp_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_006126 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006126 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006127, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006127 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.lowp_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_006127 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006127 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006128, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006128 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006128 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006128 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006129, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006129 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.fract.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_006129 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006129 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006130, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006130 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.fract.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_006130 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006130 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006131, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006131 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.fract.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_006131 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006131 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_signTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_signTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..222053a5cbf427375d0e267db2ce8c018e000ab2 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2common_functions_signTestCase.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 "../ActsDeqpgles20007TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006036, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006036 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.lowp_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_006036 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006036 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006037, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006037 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.lowp_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_006037 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006037 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006038, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006038 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006038 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006038 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006039, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006039 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.sign.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_006039 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006039 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006040, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006040 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.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_006040 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006040 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006041, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006041 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006041 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006041 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006042, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006042 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.sign.lowp_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_006042 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006042 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006043, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006043 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.lowp_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_006043 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006043 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006044, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006044 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006044 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006044 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006045, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006045 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.sign.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_006045 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006045 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006046, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006046 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.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_006046 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006046 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006047, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006047 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006047 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006047 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006048, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006048 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.sign.lowp_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_006048 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006048 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006049, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006049 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.lowp_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_006049 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006049 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006050, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006050 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006050 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006050 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006051, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006051 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.sign.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_006051 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006051 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006052, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006052 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.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_006052 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006052 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006053, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006053 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006053 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006053 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006054, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006054 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".common_functions.sign.lowp_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_006054 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006054 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006055, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006055 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.lowp_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_006055 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006055 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006056, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006056 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006056 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006056 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006057, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006057 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.co" + "mmon_functions.sign.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_006057 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006057 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006058, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006058 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "common_functions.sign.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_006058 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006058 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006059, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006059 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.c" + "ommon_functions.sign.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_006059 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006059 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2completeness_cubeTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2completeness_cubeTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..95f6b95fea5b325d1ed04e7eee46580c9a0e581c --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2completeness_cubeTestCase.cpp @@ -0,0 +1,589 @@ +/* + * 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 "../ActsDeqpgles20011TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010890, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010890 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.co" + "mpleteness.cube.npot_size_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010890 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010890 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010891, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010891 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.co" + "mpleteness.cube.npot_size_level_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010891 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010891 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010892, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010892 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.compl" + "eteness.cube.npot_size_level_0_pos_x", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010892 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010892 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010893, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010893 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.compl" + "eteness.cube.npot_size_level_1_neg_x", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010893 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010893 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010894, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010894 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.comp" + "leteness.cube.not_positive_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010894 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010894 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010895, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010895 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completene" + "ss.cube.format_mismatch_rgb_rgba_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010895 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010895 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010896, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010896 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completene" + "ss.cube.format_mismatch_rgba_rgb_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010896 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010896 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010897, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010897 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completeness.cube." + "format_mismatch_luminance_luminance_alpha_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010897 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010897 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010898, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010898 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completeness.cube." + "format_mismatch_luminance_alpha_luminance_level_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010898 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010898 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010899, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010899 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completeness." + "cube.format_mismatch_rgb_rgba_level_0_pos_z", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010899 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010899 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010900, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010900 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.completeness." + "cube.format_mismatch_rgba_rgb_level_0_neg_z", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010900 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010900 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010901, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010901 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.c" + "ompleteness.cube.missing_level_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010901 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010901 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010902, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010902 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.c" + "ompleteness.cube.missing_level_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010902 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010902 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010903, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010903 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.comp" + "leteness.cube.missing_level_1_pos_y", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010903 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010903 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010904, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010904 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.comp" + "leteness.cube.missing_level_3_neg_y", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010904 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010904 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010905, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010905 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "completeness.cube.npot_t_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010905 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010905 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010906, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010906 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "completeness.cube.npot_s_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010906 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010906 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010907, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010907 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.c" + "ompleteness.cube.npot_all_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010907 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010907 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010908, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010908 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.comp" + "leteness.cube.npot_mirrored_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010908 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010908 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010909, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010909 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".completeness.cube.extra_level", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010909 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010909 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010910, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010910 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "completeness.cube.empty_object", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010910 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010910 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_ifTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_ifTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1754c9a8a673048463830252a30970953e94329a --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_ifTestCase.cpp @@ -0,0 +1,589 @@ +/* + * 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 "../ActsDeqpgles20002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001301, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001301 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.cond" + "itionals.if.single_statement_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001301 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001301 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001302, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001302 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condi" + "tionals.if.single_statement_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001302 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001302 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001303, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001303 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condi" + "tionals.if.compound_statement_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001303 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001303 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001304, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001304 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condit" + "ionals.if.compound_statement_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001304 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001304 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001305, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001305 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condit" + "ionals.if.sequence_statements_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001305 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001305 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001306, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001306 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditi" + "onals.if.sequence_statements_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001306 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001306 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001307, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001307 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condi" + "tionals.if.sequence_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001307 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001307 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001308, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001308 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condit" + "ionals.if.sequence_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001308 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001308 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001309, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001309 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condi" + "tionals.if.complex_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001309 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001309 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001310, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001310 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condit" + "ionals.if.complex_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001310 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001310 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001311, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001311 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders." + "conditionals.if.if_else_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001311 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001311 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001312, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001312 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.c" + "onditionals.if.if_else_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001312 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001312 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001313, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001313 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.c" + "onditionals.if.if_elseif_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001313 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001313 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001314, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001314 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.co" + "nditionals.if.if_elseif_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001314 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001314 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001315, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001315 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.con" + "ditionals.if.if_elseif_else_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001315 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001315 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001316, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001316 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.cond" + "itionals.if.if_elseif_else_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001316 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001316 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001317, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001317 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condit" + "ionals.if.mixed_if_elseif_else_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001317 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001317 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001318, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001318 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditi" + "onals.if.mixed_if_elseif_else_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001318 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001318 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001319, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001319 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditionals." + "if.constant_conditional_assignment_to_matrix", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001319 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001319 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001320, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001320 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditionals" + ".if.input_conditional_assignment_to_matrix", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001320 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001320 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001321, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001321 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditionals." + "if.uniform_conditional_assignment_to_matrix", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001321 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001321 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_invalid_ifTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_invalid_ifTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..12d6fab5bb0d8d96c6db0ed290dec50a27459143 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2conditionals_invalid_ifTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001322, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001322 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.missing_parenthesis_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001322 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001322 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001323, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001323 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditional" + "s.invalid_if.missing_parenthesis_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001323 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001323 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001324, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001324 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.unclosed_parenthesis_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001324 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001324 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001325, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001325 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditional" + "s.invalid_if.unclosed_parenthesis_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001325 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001325 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001326, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001326 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditi" + "onals.invalid_if.int_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001326 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001326 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001327, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001327 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditio" + "nals.invalid_if.int_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001327 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001327 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001328, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001328 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condition" + "als.invalid_if.int_zero_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001328 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001328 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001329, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001329 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.int_zero_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001329 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001329 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001330, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001330 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condition" + "als.invalid_if.int_one_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001330 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001330 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001331, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001331 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.int_one_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001331 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001331 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001332, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001332 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditional" + "s.invalid_if.int_uniform_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001332 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001332 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001333, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001333 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditionals" + ".invalid_if.int_uniform_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001333 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001333 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001334, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001334 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditio" + "nals.invalid_if.float_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001334 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001334 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001335, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001335 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condition" + "als.invalid_if.float_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001335 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001335 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001336, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001336 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.float_zero_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001336 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001336 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001337, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001337 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditional" + "s.invalid_if.float_zero_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001337 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001337 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001338, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001338 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.float_one_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001338 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001338 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001339, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001339 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditional" + "s.invalid_if.float_one_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001339 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001339 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001340, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001340 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.condition" + "als.invalid_if.sampler_condition_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001340 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001340 end"; +} + +static HWTEST_F(ActsDeqpgles20002TestSuite, TestCase_001341, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001341 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.conditiona" + "ls.invalid_if.sampler_condition_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20002TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20002TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20002TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001341 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001341 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2fbo_apiTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2fbo_apiTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..850405a1a8528abc17dcdc80db64cbddf9856b63 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2fbo_apiTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012412, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012412 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo." + "api.valid_tex2d_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012412 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012412 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012413, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012413 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.a" + "pi.valid_texcube_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012413 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012413 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012414, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012414 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".api.valid_rbo_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012414 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012414 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012415, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012415 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".api.attach_to_default_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012415 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012415 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012416, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012416 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.a" + "pi.invalid_tex2d_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012416 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012416 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012417, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012417 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.ap" + "i.invalid_texcube_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012417 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012417 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012418, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012418 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo." + "api.invalid_rbo_attachments", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012418 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012418 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012419, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012419 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional" + ".fbo.api.attach_names", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012419 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012419 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012420, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012420 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional." + "fbo.api.texture_levels", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012420 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012420 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012421, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012421 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api" + ".attachment_query_default_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012421 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012421 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012422, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012422 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.ap" + "i.attachment_query_empty_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012422 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012422 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012423, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012423 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo." + "api.attachment_query_tex2d", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012423 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012423 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012424, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012424 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.a" + "pi.attachment_query_texcube", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012424 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012424 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012425, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012425 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".api.attachment_query_rbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012425 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012425 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012426, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012426 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.de" + "lete_tex_2d_attached_to_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012426 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012426 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012427, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012427 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.del" + "ete_tex_cube_attached_to_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012427 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012427 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012428, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012428 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.d" + "elete_rbo_attached_to_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012428 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012428 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012429, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012429 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.dele" + "te_tex_2d_attached_to_not_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012429 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012429 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012430, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012430 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.delet" + "e_tex_cube_attached_to_not_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012430 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012430 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012431, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012431 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.api.del" + "ete_rbo_attached_to_not_bound_fbo", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012431 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012431 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_array_argumentsTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_array_argumentsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fd992e428cc209808884a7827d3a497fa636019c --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_array_argumentsTestCase.cpp @@ -0,0 +1,616 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.local_in_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002115 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".array_arguments.local_in_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002116 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".array_arguments.global_in_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002117 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions." + "array_arguments.global_in_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002118 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.array_arguments.local_in_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002119 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.local_in_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002120 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002121, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002121 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.global_in_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002121 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002121 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002122, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002122 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".array_arguments.global_in_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002122 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002122 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002123, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002123 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.local_in_bool_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002123 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002123 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002124, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002124 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".array_arguments.local_in_bool_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002124 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002124 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002125, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002125 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.global_in_bool_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002125 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002125 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002126, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002126 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".array_arguments.global_in_bool_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002126 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002126 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002127, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002127 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.array_arguments.test_helpers_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002127 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002127 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002128, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002128 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.array_arguments.test_helpers_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002128 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002128 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002129, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002129 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ar" + "ray_arguments.copy_local_in_on_call_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002129 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002129 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002130, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002130 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.arr" + "ay_arguments.copy_local_in_on_call_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002130 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002130 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002131, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002131 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ar" + "ray_arguments.copy_global_in_on_call_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002131 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002131 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002132, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002132 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.arr" + "ay_arguments.copy_global_in_on_call_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002132 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002132 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002133, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002133 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.arr" + "ay_arguments.copy_local_inout_on_call_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002133 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002133 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002134, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002134 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.arra" + "y_arguments.copy_local_inout_on_call_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002134 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002134 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002135, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002135 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.arra" + "y_arguments.copy_global_inout_on_call_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002135 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002135 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002136, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002136 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.array" + "_arguments.copy_global_inout_on_call_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002136 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002136 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_control_flowTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_control_flowTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7c68c6b9a12d47a84478cd91cb69033181a72199 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_control_flowTestCase.cpp @@ -0,0 +1,616 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002137, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002137 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functi" + "ons.control_flow.simple_return_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002137 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002137 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002138, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002138 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.control_flow.simple_return_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002138 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002138 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002139, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002139 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functi" + "ons.control_flow.return_in_if_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002139 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002139 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002140, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002140 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.control_flow.return_in_if_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002140 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002140 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002141, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002141 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.control_flow.return_in_else_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002141 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002141 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002142, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002142 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.control_flow.return_in_else_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002142 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002142 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002143, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002143 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functio" + "ns.control_flow.return_in_loop_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002143 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002143 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002144, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002144 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.control_flow.return_in_loop_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002144 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002144 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002145, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002145 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.control_flow.return_in_loop_if_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002145 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002145 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002146, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002146 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".control_flow.return_in_loop_if_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002146 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002146 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002147, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002147 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.function" + "s.control_flow.return_after_loop_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002147 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002147 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002148, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002148 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".control_flow.return_after_loop_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002148 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002148 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002149, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002149 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".control_flow.return_after_break_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002149 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002149 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002150, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002150 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions." + "control_flow.return_after_break_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002150 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002150 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002151, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002151 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions." + "control_flow.return_after_continue_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002151 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002151 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002152, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002152 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.c" + "ontrol_flow.return_after_continue_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002152 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002152 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002153, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002153 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions." + "control_flow.return_in_nested_loop_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002153 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002153 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002154, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002154 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.c" + "ontrol_flow.return_in_nested_loop_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002154 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002154 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002155, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002155 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.con" + "trol_flow.return_after_loop_sequence_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002155 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002155 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002156, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002156 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.cont" + "rol_flow.return_after_loop_sequence_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002156 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002156 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002157, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002157 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.con" + "trol_flow.mixed_return_break_continue_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002157 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002157 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002158, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002158 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.cont" + "rol_flow.mixed_return_break_continue_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002158 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002158 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_overloadingTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_overloadingTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..af9d7c760bb7d3b9d4223e4f8782fdc038dbeedd --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2functions_overloadingTestCase.cpp @@ -0,0 +1,562 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002095, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002095 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ov" + "erloading.user_func_arg_type_simple_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002095 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002095 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002096, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002096 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ove" + "rloading.user_func_arg_type_simple_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002096 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002096 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002097, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002097 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ov" + "erloading.user_func_arg_float_types_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002097 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002097 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002098, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002098 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ove" + "rloading.user_func_arg_float_types_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002098 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002098 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002099, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002099 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.o" + "verloading.user_func_arg_int_types_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002099 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002099 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002100, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002100 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ov" + "erloading.user_func_arg_int_types_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002100 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002100 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002101, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002101 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.o" + "verloading.user_func_arg_bool_types_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002101 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002101 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002102, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002102 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ov" + "erloading.user_func_arg_bool_types_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002102 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002102 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002103, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002103 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ov" + "erloading.user_func_arg_basic_types_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002103 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002103 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002104, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002104 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ove" + "rloading.user_func_arg_basic_types_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002104 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002104 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002105, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002105 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.ove" + "rloading.user_func_arg_complex_types_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002105 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002105 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002106, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002106 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions.over" + "loading.user_func_arg_complex_types_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002106 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002106 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002107, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002107 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions" + ".overloading.user_func_arguments_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002107 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002107 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002108, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002108 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functions." + "overloading.user_func_arguments_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002108 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002108 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002109, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002109 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.funct" + "ions.overloading.builtin_sin_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002109 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002109 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002110, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002110 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functi" + "ons.overloading.builtin_sin_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002110 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002110 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002111, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002111 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.funct" + "ions.overloading.builtin_step_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002111 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002111 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002112, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002112 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.functi" + "ons.overloading.builtin_step_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002112 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002112 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002113, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002113 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.func" + "tions.overloading.array_size_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002113 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002113 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002114, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002114 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.funct" + "ions.overloading.array_size_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002114 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002114 end"; +} 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"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_extensionsTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_extensionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..8f5ac96d5c5f1976835a64d3ffca11f0042503bd --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2preprocessor_extensionsTestCase.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_000467, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000467 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.pre" + "processor.extensions.basic_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_000467 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000467 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000468, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000468 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prep" + "rocessor.extensions.basic_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_000468 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000468 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000469, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000469 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepr" + "ocessor.extensions.macro_exp_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_000469 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000469 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000470, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000470 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.prepro" + "cessor.extensions.macro_exp_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_000470 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000470 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000471, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000471 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.extensions.missing_extension_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000471 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000471 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000472, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000472 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor" + ".extensions.missing_extension_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000472 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000472 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000473, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000473 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.extensions.invalid_extension_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000473 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000473 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000474, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000474 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor" + ".extensions.invalid_extension_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000474 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000474 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000475, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000475 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.extensions.missing_colon_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_000475 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000475 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000476, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000476 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.extensions.missing_colon_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_000476 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000476 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000477, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000477 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproc" + "essor.extensions.expected_colon_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_000477 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000477 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000478, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000478 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.extensions.expected_colon_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_000478 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000478 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000479, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000479 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproce" + "ssor.extensions.missing_behavior_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_000479 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000479 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000480, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000480 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.extensions.missing_behavior_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_000480 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000480 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000481, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000481 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.extensions.invalid_behavior_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_000481 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000481 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000482, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000482 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocess" + "or.extensions.invalid_behavior_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_000482 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000482 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000483, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000483 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preproces" + "sor.extensions.invalid_behavior_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_000483 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000483 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000484, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000484 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocess" + "or.extensions.invalid_behavior_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_000484 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000484 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000485, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000485 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocess" + "or.extensions.invalid_char_in_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000485 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000485 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000486, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000486 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.extensions.invalid_char_in_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000486 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000486 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000487, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000487 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor" + ".extensions.invalid_char_in_behavior_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_000487 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000487 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000488, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000488 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocessor." + "extensions.invalid_char_in_behavior_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_000488 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000488 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000489, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000489 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocess" + "or.extensions.unterminated_comment_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_000489 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000489 end"; +} + +static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000490, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000490 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.preprocesso" + "r.extensions.unterminated_comment_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_000490 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000490 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_color_clearTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_color_clearTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..62cbe7efc484bf56e398e32ef89527839dde7850 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_color_clearTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012432, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012432 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.r" + "ender.color_clear.tex2d_rgb", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012432 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012432 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012433, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012433 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.c" + "olor_clear.tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012433 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012433 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012434, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012434 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.col" + "or_clear.tex2d_rgb_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012434 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012434 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012435, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012435 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.color_clea" + "r.tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012435 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012435 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012436, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012436 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.r" + "ender.color_clear.tex2d_rgba", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012436 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012436 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012437, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012437 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.co" + "lor_clear.tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012437 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012437 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012438, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012438 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.col" + "or_clear.tex2d_rgba_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012438 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012438 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012439, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012439 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.color_clear" + ".tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012439 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012439 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012440, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012440 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.r" + "ender.color_clear.rbo_rgb565", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012440 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012440 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012441, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012441 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.co" + "lor_clear.rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012441 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012441 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012442, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012442 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.col" + "or_clear.rbo_rgb565_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012442 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012442 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012443, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012443 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.color_clear" + ".rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012443 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012443 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012444, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012444 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.re" + "nder.color_clear.rbo_rgb5_a1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012444 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012444 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012445, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012445 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.co" + "lor_clear.rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012445 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012445 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012446, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012446 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.colo" + "r_clear.rbo_rgb5_a1_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012446 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012446 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012447, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012447 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.color_clear" + ".rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012447 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012447 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012448, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012448 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.r" + "ender.color_clear.rbo_rgba4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012448 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012448 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012449, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012449 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.c" + "olor_clear.rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012449 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012449 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012450, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012450 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.col" + "or_clear.rbo_rgba4_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012450 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012450 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012451, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012451 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.color_clea" + "r.rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012451 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012451 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_depthbufferTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_depthbufferTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b5059ac615c0a4a2a13d7f68ff676424f81cec91 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_depthbufferTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012615, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012615 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_de" + "pthbuffer.rebind_tex2d_rgb_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012615 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012615 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012616, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012616 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuff" + "er.rebind_tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012616 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012616 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012617, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012617 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_de" + "pthbuffer.rebind_tex2d_rgba_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012617 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012617 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012618, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012618 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffe" + "r.rebind_tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012618 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012618 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012619, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012619 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_de" + "pthbuffer.rebind_rbo_rgb565_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012619 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012619 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012620, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012620 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffe" + "r.rebind_rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012620 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012620 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012621, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012621 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dep" + "thbuffer.rebind_rbo_rgb5_a1_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012621 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012621 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012622, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012622 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffe" + "r.rebind_rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012622 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012622 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012623, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012623 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_de" + "pthbuffer.rebind_rbo_rgba4_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012623 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012623 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012624, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012624 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuff" + "er.rebind_rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012624 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012624 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012625, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012625 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dep" + "thbuffer.no_rebind_tex2d_rgb_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012625 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012625 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012626, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012626 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffer" + ".no_rebind_tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012626 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012626 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012627, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012627 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dept" + "hbuffer.no_rebind_tex2d_rgba_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012627 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012627 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012628, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012628 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffer" + ".no_rebind_tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012628 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012628 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012629, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012629 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dept" + "hbuffer.no_rebind_rbo_rgb565_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012629 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012629 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012630, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012630 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffer" + ".no_rebind_rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012630 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012630 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012631, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012631 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dept" + "hbuffer.no_rebind_rbo_rgb5_a1_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012631 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012631 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012632, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012632 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffer." + "no_rebind_rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012632 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012632 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012633, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012633 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_dep" + "thbuffer.no_rebind_rbo_rgba4_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012633 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012633 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012634, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012634 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_depthbuffer" + ".no_rebind_rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012634 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012634 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_stencilbufferTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_stencilbufferTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ec72f6e38aeea3c9d9c13b643fe33bc6e518d1fe --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_recreate_stencilbufferTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012635, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012635 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_s" + "tencilbuffer.rebind_tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012635 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012635 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012636, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012636 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuf" + "fer.rebind_tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012636 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012636 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012637, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012637 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_st" + "encilbuffer.rebind_tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012637 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012637 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012638, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012638 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuff" + "er.rebind_tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012638 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012638 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012639, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012639 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_st" + "encilbuffer.rebind_rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012639 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012639 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012640, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012640 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuff" + "er.rebind_rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012640 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012640 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012641, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012641 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_st" + "encilbuffer.rebind_rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012641 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012641 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012642, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012642 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuff" + "er.rebind_rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012642 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012642 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012643, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012643 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_s" + "tencilbuffer.rebind_rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012643 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012643 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012644, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012644 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuf" + "fer.rebind_rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012644 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012644 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012645, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012645 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_ste" + "ncilbuffer.no_rebind_tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012645 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012645 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012646, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012646 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuffe" + "r.no_rebind_tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012646 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012646 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012647, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012647 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_ste" + "ncilbuffer.no_rebind_tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012647 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012647 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012648, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012648 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuffe" + "r.no_rebind_tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012648 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012648 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012649, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012649 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_ste" + "ncilbuffer.no_rebind_rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012649 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012649 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012650, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012650 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuffe" + "r.no_rebind_rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012650 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012650 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012651, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012651 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_sten" + "cilbuffer.no_rebind_rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012651 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012651 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012652, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012652 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuffer" + ".no_rebind_rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012652 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012652 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012653, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012653 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_ste" + "ncilbuffer.no_rebind_rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012653 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012653 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012654, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012654 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.recreate_stencilbuffe" + "r.no_rebind_rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012654 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012654 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_resizeTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_resizeTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a53335520267915ce3b97620155af9626c4eabab --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_resizeTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012555, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012555 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fb" + "o.render.resize.tex2d_rgb", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012555 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012555 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012556, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012556 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".resize.tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012556 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012556 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012557, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012557 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "resize.tex2d_rgb_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012557 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012557 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012558, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012558 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.resize.t" + "ex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012558 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012558 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012559, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012559 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".render.resize.tex2d_rgba", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012559 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012559 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012560, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012560 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".resize.tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012560 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012560 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012561, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012561 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.r" + "esize.tex2d_rgba_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012561 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012561 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012562, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012562 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.resize.t" + "ex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012562 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012562 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012563, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012563 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".render.resize.rbo_rgb565", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012563 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012563 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012564, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012564 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".resize.rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012564 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012564 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012565, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012565 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.r" + "esize.rbo_rgb565_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012565 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012565 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012566, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012566 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.resize.r" + "bo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012566 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012566 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012567, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012567 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo" + ".render.resize.rbo_rgb5_a1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012567 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012567 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012568, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012568 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "resize.rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012568 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012568 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012569, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012569 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.r" + "esize.rbo_rgb5_a1_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012569 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012569 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012570, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012570 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.resize.rb" + "o_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012570 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012570 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012571, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012571 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fb" + "o.render.resize.rbo_rgba4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012571 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012571 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012572, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012572 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".resize.rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012572 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012572 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012573, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012573 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "resize.rbo_rgba4_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012573 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012573 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012574, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012574 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.resize.r" + "bo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012574 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012574 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_shared_colorbufferTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_shared_colorbufferTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..80da3a6bcc77c0bff42bac7fea358c9ff7f4573e --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_shared_colorbufferTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012525, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012525 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.rend" + "er.shared_colorbuffer.tex2d_rgb", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012525 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012525 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012526, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012526 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.share" + "d_colorbuffer.tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012526 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012526 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012527, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012527 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared" + "_colorbuffer.tex2d_rgb_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012527 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012527 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012528, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012528 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_colorbu" + "ffer.tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012528 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012528 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012529, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012529 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.rende" + "r.shared_colorbuffer.tex2d_rgba", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012529 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012529 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012530, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012530 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.share" + "d_colorbuffer.tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012530 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012530 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012531, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012531 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_" + "colorbuffer.tex2d_rgba_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012531 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012531 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012532, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012532 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_colorbu" + "ffer.tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012532 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012532 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012533, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012533 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.rende" + "r.shared_colorbuffer.rbo_rgb565", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012533 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012533 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012534, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012534 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.share" + "d_colorbuffer.rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012534 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012534 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012535, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012535 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_" + "colorbuffer.rbo_rgb565_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012535 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012535 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012536, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012536 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_colorbu" + "ffer.rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012536 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012536 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012537, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012537 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.rende" + "r.shared_colorbuffer.rbo_rgb5_a1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012537 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012537 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012538, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012538 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared" + "_colorbuffer.rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012538 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012538 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012539, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012539 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_" + "colorbuffer.rbo_rgb5_a1_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012539 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012539 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012540, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012540 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_colorbuf" + "fer.rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012540 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012540 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012541, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012541 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.rend" + "er.shared_colorbuffer.rbo_rgba4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012541 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012541 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012542, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012542 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.share" + "d_colorbuffer.rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012542 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012542 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012543, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012543 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared" + "_colorbuffer.rbo_rgba4_depth_component16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012543 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012543 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012544, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012544 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.shared_colorbu" + "ffer.rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012544 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012544 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_stencilTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_stencilTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..6e66dd1e74bc67b723e35ed8e652e2dccd78dfb0 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2render_stencilTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20013TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012500, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012500 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".stencil.tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012500 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012500 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012501, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012501 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil." + "tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012501 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012501 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012502, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012502 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "stencil.tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012502 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012502 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012503, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012503 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.t" + "ex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012503 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012503 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012504, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012504 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "stencil.rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012504 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012504 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012505, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012505 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.r" + "bo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012505 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012505 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012506, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012506 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render." + "stencil.rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012506 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012506 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012507, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012507 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.r" + "bo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012507 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012507 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012508, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012508 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render" + ".stencil.rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012508 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012508 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012509, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012509 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil." + "rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012509 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012509 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012510, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012510 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.st" + "encil.npot_tex2d_rgb_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012510 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012510 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012511, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012511 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.npo" + "t_tex2d_rgb_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012511 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012511 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012512, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012512 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.st" + "encil.npot_tex2d_rgba_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012512 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012512 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012513, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012513 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.npo" + "t_tex2d_rgba_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012513 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012513 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012514, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012514 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.st" + "encil.npot_rbo_rgb565_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012514 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012514 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012515, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012515 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.npo" + "t_rbo_rgb565_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012515 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012515 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012516, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012516 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.ste" + "ncil.npot_rbo_rgb5_a1_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012516 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012516 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012517, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012517 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.npot" + "_rbo_rgb5_a1_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012517 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012517 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012518, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012518 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.st" + "encil.npot_rbo_rgba4_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012518 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012518 end"; +} + +static HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012519, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_012519 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.fbo.render.stencil.npo" + "t_rbo_rgba4_depth_component16_stencil_index8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20013TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20013TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20013TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20013TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20013TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_012519 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_012519 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shader_api_shader_sourceTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shader_api_shader_sourceTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..595f9a0230a83638d0df7d8464158cd8d2315aa4 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shader_api_shader_sourceTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20014TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013596, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013596 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.s" + "hader_source.replace_source_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013596 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013596 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013597, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013597 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.sh" + "ader_source.replace_source_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013597 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013597 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013598, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013598 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_2_null_terminated_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013598 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013598 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013599, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013599 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_2_null_terminated_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013599 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013599 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013600, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013600 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_4_null_terminated_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013600 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013600 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013601, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013601 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_4_null_terminated_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013601 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013601 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013602, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013602 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_8_null_terminated_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013602 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013602 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013603, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013603 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_8_null_terminated_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013603 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013603 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013604, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013604 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_2_specify_lengths_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013604 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013604 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013605, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013605 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_2_specify_lengths_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013605 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013605 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013606, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013606 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_4_specify_lengths_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013606 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013606 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013607, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013607 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_4_specify_lengths_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013607 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013607 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013608, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013608 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_so" + "urce.split_source_8_specify_lengths_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013608 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013608 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013609, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013609 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sou" + "rce.split_source_8_specify_lengths_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013609 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013609 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013610, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013610 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sourc" + "e.split_source_2_random_negative_length_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013610 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013610 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013611, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013611 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_source" + ".split_source_2_random_negative_length_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013611 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013611 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013612, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013612 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sourc" + "e.split_source_4_random_negative_length_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013612 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013612 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013613, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013613 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_source" + ".split_source_4_random_negative_length_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013613 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013613 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013614, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013614 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_sourc" + "e.split_source_8_random_negative_length_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013614 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013614 end"; +} + +static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013615, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_013615 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader_api.shader_source" + ".split_source_8_random_negative_length_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_013615 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_013615 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_builtin_variableTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_builtin_variableTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..73f634909947573fdca0b5c09ce72fa674d197a5 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_builtin_variableTestCase.cpp @@ -0,0 +1,616 @@ +/* + * 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 "../ActsDeqpgles20008TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007784, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007784 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builti" + "n_variable.max_vertex_attribs_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007784 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007784 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007785, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007785 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin" + "_variable.max_vertex_attribs_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007785 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007785 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007786, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007786 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_va" + "riable.max_vertex_uniform_vectors_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007786 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007786 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007787, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007787 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_var" + "iable.max_vertex_uniform_vectors_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007787 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007787 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007788, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007788 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_var" + "iable.max_fragment_uniform_vectors_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007788 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007788 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007789, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007789 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_vari" + "able.max_fragment_uniform_vectors_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007789 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007789 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007790, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007790 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builti" + "n_variable.max_varying_vectors_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007790 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007790 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007791, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007791 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin" + "_variable.max_varying_vectors_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007791 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007791 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007792, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007792 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_" + "variable.max_texture_image_units_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007792 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007792 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007793, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007793 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_v" + "ariable.max_texture_image_units_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007793 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007793 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007794, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007794 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_vari" + "able.max_vertex_texture_image_units_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007794 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007794 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007795, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007795 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_varia" + "ble.max_vertex_texture_image_units_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007795 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007795 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007796, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007796 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_varia" + "ble.max_combined_texture_image_units_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007796 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007796 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007797, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007797 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builtin_variab" + "le.max_combined_texture_image_units_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007797 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007797 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007798, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007798 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.built" + "in_variable.max_draw_buffers_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007798 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007798 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007799, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007799 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.builti" + "n_variable.max_draw_buffers_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007799 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007799 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007800, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007800 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.bu" + "iltin_variable.depth_range_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007800 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007800 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007801, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007801 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.bui" + "ltin_variable.depth_range_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007801 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007801 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007802, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007802 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders." + "builtin_variable.fragcoord_xyz", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007802 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007802 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007803, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007803 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders" + ".builtin_variable.fragcoord_w", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007803 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007803 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007804, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007804 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shader" + "s.builtin_variable.pointcoord", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007804 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007804 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007805, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007805 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders" + ".builtin_variable.frontfacing", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007805 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007805 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_reserved_operatorsTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_reserved_operatorsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..72641c8a68ef6e42d5208575bb30ee2b48fa40b8 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2shaders_reserved_operatorsTestCase.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 "../ActsDeqpgles20003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002347, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002347 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reser" + "ved_operators.operator_modulo_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002347 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002347 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002348, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002348 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserv" + "ed_operators.operator_modulo_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002348 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002348 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002349, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002349 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_op" + "erators.operator_bitwise_shift_left_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002349 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002349 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002350, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002350 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_ope" + "rators.operator_bitwise_shift_left_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002350 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002350 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002351, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002351 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_ope" + "rators.operator_bitwise_shift_right_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002351 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002351 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002352, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002352 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_oper" + "ators.operator_bitwise_shift_right_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002352 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002352 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002353, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002353 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_bitwise_and_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002353 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002353 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002354, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002354 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_" + "operators.operator_bitwise_and_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002354 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002354 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002355, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002355 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_bitwise_xor_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002355 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002355 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002356, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002356 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_" + "operators.operator_bitwise_xor_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002356 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002356 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002357, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002357 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserve" + "d_operators.operator_bitwise_or_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002357 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002357 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002358, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002358 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_bitwise_or_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002358 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002358 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002359, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002359 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_" + "operators.operator_assign_modulo_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002359 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002359 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002360, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002360 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_o" + "perators.operator_assign_modulo_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002360 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002360 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002361, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002361 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_op" + "erators.operator_assign_shift_left_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002361 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002361 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002362, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002362 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_ope" + "rators.operator_assign_shift_left_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002362 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002362 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002363, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002363 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_op" + "erators.operator_assign_shift_right_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002363 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002363 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002364, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002364 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved_ope" + "rators.operator_assign_shift_right_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002364 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002364 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002365, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002365 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserve" + "d_operators.operator_assign_and_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002365 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002365 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002366, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002366 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_assign_and_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002366 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002366 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002367, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002367 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserve" + "d_operators.operator_assign_xor_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002367 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002367 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002368, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002368 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_assign_xor_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002368 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002368 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002369, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002369 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserve" + "d_operators.operator_assign_or_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002369 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002369 end"; +} + +static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002370, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002370 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.reserved" + "_operators.operator_assign_or_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002370 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002370 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2specification_random_teximage2dTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2specification_random_teximage2dTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e3d6bbcaadcd8154c0088ae1249374d0ea456a95 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2specification_random_teximage2dTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../ActsDeqpgles20011TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010705, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010705 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010705 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010705 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010706, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010706 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010706 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010706 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010707, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010707 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010707 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010707 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010708, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010708 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010708 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010708 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010709, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010709 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010709 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010709 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010710, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010710 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010710 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010710 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010711, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010711 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010711 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010711 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010712, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010712 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010712 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010712 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010713, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010713 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010713 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010713 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010714, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010714 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spe" + "cification.random_teximage2d.2d_9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010714 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010714 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010715, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010715 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010715 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010715 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010716, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010716 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010716 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010716 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010717, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010717 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010717 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010717 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010718, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010718 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010718 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010718 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010719, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010719 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010719 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010719 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010720, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010720 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010720 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010720 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010721, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010721 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010721 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010721 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010722, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010722 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010722 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010722 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010723, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010723 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010723 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010723 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010724, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010724 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.spec" + "ification.random_teximage2d.cube_9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010724 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010724 end"; +}