From 6536511f1503f9684cf7c9e70663a00530bc760a Mon Sep 17 00:00:00 2001 From: wangshi Date: Tue, 5 Jul 2022 09:02:11 +0800 Subject: [PATCH] add depq2 testcase Signed-off-by: wangshi --- .../Deqpgles2float_compare_equalTestCase.cpp | 508 ++++++++++++++++++ ...eqpgles2float_compare_notEqualTestCase.cpp | 508 ++++++++++++++++++ ...Deqpgles2matrix_post_decrementTestCase.cpp | 508 ++++++++++++++++++ ...Deqpgles2matrix_post_incrementTestCase.cpp | 508 ++++++++++++++++++ 4 files changed, 2032 insertions(+) create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_equalTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_notEqualTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_decrementTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_incrementTestCase.cpp diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_equalTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_equalTestCase.cpp new file mode 100644 index 000000000..7e6f151c4 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_equalTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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_006600, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006600 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operato" + "r.float_compare.equal.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_006600 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006600 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006601, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006601 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006601 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006601 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006602, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006602 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006602 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006602 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006603, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006603 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.equal.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_006603 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006603 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006604, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006604 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006604 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006604 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006605, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006605 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006605 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006605 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006606, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006606 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operato" + "r.float_compare.equal.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_006606 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006606 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006607, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006607 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006607 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006607 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006608, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006608 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006608 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006608 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006609, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006609 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.equal.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_006609 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006609 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006610, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006610 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006610 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006610 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006611, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006611 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006611 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006611 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006612, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006612 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operato" + "r.float_compare.equal.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_006612 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006612 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006613, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006613 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006613 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006613 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006614, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006614 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006614 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006614 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006615, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006615 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.equal.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_006615 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006615 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006616, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006616 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".float_compare.equal.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_006616 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006616 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006617, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006617 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.equal.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_006617 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006617 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_notEqualTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_notEqualTestCase.cpp new file mode 100644 index 000000000..c0fd534c3 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2float_compare_notEqualTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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_006618, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006618 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006618 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006618 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006619, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006619 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006619 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006619 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006620, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006620 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006620 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006620 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006621, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006621 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.fl" + "oat_compare.notEqual.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_006621 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006621 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006622, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006622 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006622 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006622 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006623, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006623 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006623 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006623 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006624, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006624 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006624 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006624 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006625, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006625 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006625 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006625 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006626, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006626 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006626 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006626 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006627, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006627 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.fl" + "oat_compare.notEqual.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_006627 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006627 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006628, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006628 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006628 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006628 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006629, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006629 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006629 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006629 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006630, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006630 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006630 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006630 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006631, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006631 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006631 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006631 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006632, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006632 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006632 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006632 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006633, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006633 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.fl" + "oat_compare.notEqual.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_006633 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006633 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006634, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006634 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "float_compare.notEqual.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_006634 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006634 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006635, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006635 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.f" + "loat_compare.notEqual.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_006635 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006635 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_decrementTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_decrementTestCase.cpp new file mode 100644 index 000000000..b3b2163c3 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_decrementTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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_007529, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007529 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_lowp_mat2_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_007529 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007529 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007530, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007530 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_lowp_mat2_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_007530 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007530 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007531, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007531 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_mediump_mat2_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_007531 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007531 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007532, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007532 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_decrement.dynamic_mediump_mat2_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_007532 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007532 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007533, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007533 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_highp_mat2_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_007533 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007533 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007534, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007534 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_highp_mat2_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_007534 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007534 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007535, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007535 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_lowp_mat3_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_007535 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007535 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007536, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007536 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_lowp_mat3_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_007536 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007536 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007537, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007537 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_mediump_mat3_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_007537 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007537 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007538, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007538 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_decrement.dynamic_mediump_mat3_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_007538 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007538 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007539, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007539 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_highp_mat3_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_007539 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007539 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007540, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007540 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_highp_mat3_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_007540 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007540 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007541, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007541 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_lowp_mat4_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_007541 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007541 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007542, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007542 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_lowp_mat4_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_007542 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007542 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007543, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007543 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_mediump_mat4_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_007543 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007543 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007544, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007544 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_decrement.dynamic_mediump_mat4_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_007544 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007544 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007545, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007545 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_decrement.dynamic_highp_mat4_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_007545 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007545 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007546, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007546 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_decrement.dynamic_highp_mat4_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_007546 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007546 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_incrementTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_incrementTestCase.cpp new file mode 100644 index 000000000..c2a250292 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2matrix_post_incrementTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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_007511, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007511 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_lowp_mat2_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_007511 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007511 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007512, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007512 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_lowp_mat2_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_007512 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007512 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007513, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007513 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_mediump_mat2_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_007513 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007513 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007514, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007514 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_increment.dynamic_mediump_mat2_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_007514 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007514 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007515, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007515 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_highp_mat2_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_007515 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007515 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007516, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007516 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_highp_mat2_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_007516 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007516 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007517, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007517 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_lowp_mat3_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_007517 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007517 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007518, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007518 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_lowp_mat3_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_007518 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007518 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007519, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007519 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_mediump_mat3_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_007519 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007519 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007520, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007520 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_increment.dynamic_mediump_mat3_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_007520 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007520 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007521, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007521 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_highp_mat3_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_007521 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007521 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007522, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007522 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_highp_mat3_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_007522 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007522 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007523, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007523 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_lowp_mat4_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_007523 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007523 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007524, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007524 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_lowp_mat4_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_007524 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007524 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007525, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007525 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_mediump_mat4_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_007525 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007525 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007526, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007526 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.pos" + "t_increment.dynamic_mediump_mat4_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_007526 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007526 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007527, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007527 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.p" + "ost_increment.dynamic_highp_mat4_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_007527 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007527 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007528, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007528 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.matrix.po" + "st_increment.dynamic_highp_mat4_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_007528 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007528 end"; +} -- GitLab