From a7ef558cd1ab3d89d576b97ed5869b3dde43f610 Mon Sep 17 00:00:00 2001 From: wangshi Date: Tue, 5 Jul 2022 09:12:52 +0800 Subject: [PATCH] add depq2 testcase Signed-off-by: wangshi --- ...qpgles2binary_operator_greaterTestCase.cpp | 346 ++++++++++++++++++ ...nary_operator_greater_or_equalTestCase.cpp | 346 ++++++++++++++++++ .../Deqpgles2binary_operator_lessTestCase.cpp | 346 ++++++++++++++++++ ...2binary_operator_less_or_equalTestCase.cpp | 346 ++++++++++++++++++ 4 files changed, 1384 insertions(+) create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greaterTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greater_or_equalTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_lessTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_less_or_equalTestCase.cpp diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greaterTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greaterTestCase.cpp new file mode 100644 index 000000000..8661c4653 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greaterTestCase.cpp @@ -0,0 +1,346 @@ +/* + * 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 "../ActsDeqpgles20006TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005590, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005590 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.greater.lowp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005590 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005590 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005591, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005591 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bi" + "nary_operator.greater.lowp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005591 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005591 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005592, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005592 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bi" + "nary_operator.greater.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005592 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005592 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005593, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005593 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bin" + "ary_operator.greater.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005593 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005593 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005594, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005594 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.greater.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005594 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005594 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005595, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005595 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bi" + "nary_operator.greater.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005595 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005595 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005596, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005596 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.greater.lowp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005596 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005596 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005597, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005597 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.greater.lowp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005597 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005597 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005598, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005598 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.greater.mediump_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005598 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005598 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005599, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005599 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bi" + "nary_operator.greater.mediump_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005599 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005599 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005600, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005600 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.greater.highp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005600 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005600 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005601, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005601 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.greater.highp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005601 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005601 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greater_or_equalTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greater_or_equalTestCase.cpp new file mode 100644 index 000000000..a6937af07 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_greater_or_equalTestCase.cpp @@ -0,0 +1,346 @@ +/* + * 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 "../ActsDeqpgles20006TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005602, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005602 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.greater_or_equal.lowp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005602 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005602 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005603, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005603 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary" + "_operator.greater_or_equal.lowp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005603 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005603 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005604, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005604 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary_" + "operator.greater_or_equal.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005604 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005604 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005605, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005605 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary_o" + "perator.greater_or_equal.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005605 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005605 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005606, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005606 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary" + "_operator.greater_or_equal.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005606 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005606 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005607, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005607 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary_" + "operator.greater_or_equal.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005607 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005607 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005608, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005608 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.greater_or_equal.lowp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005608 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005608 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005609, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005609 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.greater_or_equal.lowp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005609 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005609 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005610, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005610 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary" + "_operator.greater_or_equal.mediump_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005610 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005610 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005611, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005611 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary_" + "operator.greater_or_equal.mediump_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005611 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005611 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005612, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005612 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.greater_or_equal.highp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005612 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005612 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005613, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005613 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary" + "_operator.greater_or_equal.highp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005613 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005613 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_lessTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_lessTestCase.cpp new file mode 100644 index 000000000..bd7e4c72f --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_lessTestCase.cpp @@ -0,0 +1,346 @@ +/* + * 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 "../ActsDeqpgles20006TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005566, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005566 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".binary_operator.less.lowp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005566 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005566 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005567, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005567 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.less.lowp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005567 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005567 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005568, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005568 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.less.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005568 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005568 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005569, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005569 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bi" + "nary_operator.less.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005569 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005569 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005570, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005570 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.less.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005570 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005570 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005571, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005571 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.less.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005571 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005571 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005572, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005572 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operato" + "r.binary_operator.less.lowp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005572 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005572 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005573, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005573 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".binary_operator.less.lowp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005573 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005573 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005574, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005574 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.less.mediump_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005574 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005574 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005575, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005575 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.b" + "inary_operator.less.mediump_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005575 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005575 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005576, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005576 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator" + ".binary_operator.less.highp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005576 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005576 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005577, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005577 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator." + "binary_operator.less.highp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005577 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005577 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_less_or_equalTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_less_or_equalTestCase.cpp new file mode 100644 index 000000000..3cd936fea --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2binary_operator_less_or_equalTestCase.cpp @@ -0,0 +1,346 @@ +/* + * 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 "../ActsDeqpgles20006TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005578, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005578 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.less_or_equal.lowp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005578 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005578 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005579, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005579 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.less_or_equal.lowp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005579 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005579 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005580, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005580 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.less_or_equal.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005580 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005580 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005581, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005581 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binary" + "_operator.less_or_equal.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005581 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005581 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005582, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005582 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.less_or_equal.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005582 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005582 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005583, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005583 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.less_or_equal.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005583 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005583 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005584, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005584 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bin" + "ary_operator.less_or_equal.lowp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005584 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005584 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005585, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005585 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.less_or_equal.lowp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005585 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005585 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005586, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005586 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.less_or_equal.mediump_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005586 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005586 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005587, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005587 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.binar" + "y_operator.less_or_equal.mediump_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005587 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005587 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005588, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005588 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bin" + "ary_operator.less_or_equal.highp_int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005588 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005588 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005589, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005589 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.bina" + "ry_operator.less_or_equal.highp_int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005589 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005589 end"; +} -- GitLab