From e0a9a72bbeebfc8b4e0008d8d3c510f2c9a6a590 Mon Sep 17 00:00:00 2001 From: wangshi Date: Tue, 5 Jul 2022 09:02:42 +0800 Subject: [PATCH] add depq2 testcase Signed-off-by: wangshi --- ...s2int_compare_greaterThanEqualTestCase.cpp | 508 ++++++++++++++++++ ...qpgles2int_compare_greaterThanTestCase.cpp | 508 ++++++++++++++++++ ...gles2int_compare_lessThanEqualTestCase.cpp | 508 ++++++++++++++++++ .../Deqpgles2int_compare_lessThanTestCase.cpp | 508 ++++++++++++++++++ 4 files changed, 2032 insertions(+) create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanEqualTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanEqualTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanTestCase.cpp diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanEqualTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanEqualTestCase.cpp new file mode 100644 index 000000000..e14bb4997 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanEqualTestCase.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_006690, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006690 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThanEqual.lowp_ivec2_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_006690 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006690 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006691, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006691 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.lowp_ivec2_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_006691 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006691 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006692, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006692 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.mediump_ivec2_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_006692 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006692 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006693, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006693 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_co" + "mpare.greaterThanEqual.mediump_ivec2_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_006693 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006693 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006694, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006694 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.highp_ivec2_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_006694 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006694 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006695, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006695 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.highp_ivec2_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_006695 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006695 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006696, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006696 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThanEqual.lowp_ivec3_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_006696 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006696 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006697, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006697 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.lowp_ivec3_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_006697 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006697 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006698, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006698 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.mediump_ivec3_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_006698 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006698 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006699, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006699 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_co" + "mpare.greaterThanEqual.mediump_ivec3_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_006699 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006699 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006700, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006700 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.highp_ivec3_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_006700 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006700 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006701, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006701 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.highp_ivec3_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_006701 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006701 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006702, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006702 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThanEqual.lowp_ivec4_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_006702 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006702 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006703, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006703 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.lowp_ivec4_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_006703 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006703 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006704, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006704 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.mediump_ivec4_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_006704 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006704 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006705, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006705 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_co" + "mpare.greaterThanEqual.mediump_ivec4_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_006705 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006705 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006706, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006706 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.greaterThanEqual.highp_ivec4_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_006706 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006706 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006707, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006707 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_c" + "ompare.greaterThanEqual.highp_ivec4_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_006707 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006707 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanTestCase.cpp new file mode 100644 index 000000000..454ed2ecf --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_greaterThanTestCase.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_006672, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006672 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.lowp_ivec2_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_006672 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006672 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006673, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006673 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.lowp_ivec2_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_006673 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006673 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006674, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006674 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.mediump_ivec2_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_006674 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006674 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006675, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006675 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThan.mediump_ivec2_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_006675 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006675 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006676, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006676 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.highp_ivec2_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_006676 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006676 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006677, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006677 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.highp_ivec2_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_006677 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006677 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006678, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006678 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.lowp_ivec3_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_006678 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006678 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006679, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006679 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.lowp_ivec3_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_006679 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006679 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006680, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006680 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.mediump_ivec3_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_006680 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006680 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006681, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006681 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThan.mediump_ivec3_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_006681 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006681 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006682, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006682 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.highp_ivec3_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_006682 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006682 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006683, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006683 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.highp_ivec3_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_006683 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006683 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006684, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006684 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.lowp_ivec4_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_006684 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006684 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006685, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006685 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.lowp_ivec4_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_006685 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006685 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006686, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006686 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.mediump_ivec4_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_006686 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006686 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006687, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006687 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.greaterThan.mediump_ivec4_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_006687 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006687 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006688, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006688 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.greaterThan.highp_ivec4_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_006688 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006688 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006689, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006689 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.greaterThan.highp_ivec4_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_006689 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006689 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanEqualTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanEqualTestCase.cpp new file mode 100644 index 000000000..a2f61307a --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanEqualTestCase.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_006654, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006654 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.lowp_ivec2_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_006654 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006654 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006655, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006655 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.lowp_ivec2_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_006655 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006655 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006656, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006656 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.mediump_ivec2_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_006656 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006656 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006657, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006657 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.lessThanEqual.mediump_ivec2_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_006657 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006657 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006658, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006658 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.highp_ivec2_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_006658 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006658 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006659, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006659 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.highp_ivec2_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_006659 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006659 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006660, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006660 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.lowp_ivec3_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_006660 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006660 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006661, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006661 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.lowp_ivec3_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_006661 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006661 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006662, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006662 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.mediump_ivec3_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_006662 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006662 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006663, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006663 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.lessThanEqual.mediump_ivec3_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_006663 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006663 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006664, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006664 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.highp_ivec3_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_006664 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006664 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006665, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006665 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.highp_ivec3_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_006665 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006665 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006666, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006666 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.lowp_ivec4_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_006666 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006666 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006667, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006667 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.lowp_ivec4_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_006667 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006667 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006668, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006668 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.mediump_ivec4_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_006668 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006668 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006669, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006669 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int_" + "compare.lessThanEqual.mediump_ivec4_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_006669 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006669 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006670, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006670 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThanEqual.highp_ivec4_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_006670 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006670 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006671, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006671 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.int" + "_compare.lessThanEqual.highp_ivec4_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_006671 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006671 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanTestCase.cpp new file mode 100644 index 000000000..73791b36f --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2int_compare_lessThanTestCase.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_006636, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006636 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".int_compare.lessThan.lowp_ivec2_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_006636 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006636 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006637, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006637 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.lowp_ivec2_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_006637 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006637 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006638, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006638 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.mediump_ivec2_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_006638 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006638 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006639, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006639 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThan.mediump_ivec2_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_006639 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006639 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006640, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006640 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.highp_ivec2_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_006640 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006640 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006641, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006641 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.highp_ivec2_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_006641 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006641 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006642, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006642 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".int_compare.lessThan.lowp_ivec3_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_006642 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006642 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006643, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006643 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.lowp_ivec3_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_006643 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006643 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006644, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006644 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.mediump_ivec3_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_006644 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006644 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006645, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006645 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThan.mediump_ivec3_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_006645 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006645 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006646, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006646 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.highp_ivec3_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_006646 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006646 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006647, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006647 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.highp_ivec3_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_006647 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006647 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006648, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006648 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".int_compare.lessThan.lowp_ivec4_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_006648 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006648 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006649, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006649 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.lowp_ivec4_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_006649 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006649 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006650, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006650 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.mediump_ivec4_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_006650 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006650 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006651, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006651 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.in" + "t_compare.lessThan.mediump_ivec4_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_006651 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006651 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006652, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006652 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "int_compare.lessThan.highp_ivec4_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_006652 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006652 end"; +} + +static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006653, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_006653 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.i" + "nt_compare.lessThan.highp_ivec4_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_006653 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_006653 end"; +} -- GitLab