From a70456c8c3e8956e7023f682dd67cfe8c613c4ef Mon Sep 17 00:00:00 2001 From: wangshi Date: Tue, 5 Jul 2022 09:14:39 +0800 Subject: [PATCH] add depq2 testcase Signed-off-by: wangshi --- .../Deqpgles2clipping_pointTestCase.cpp | 319 ++++++++++++++++++ ...Deqpgles2clipping_polygon_edgeTestCase.cpp | 265 +++++++++++++++ ...tant_expressions_complex_typesTestCase.cpp | 238 +++++++++++++ ...s2constant_expressions_trivialTestCase.cpp | 238 +++++++++++++ .../functional/Deqpgles2cube_wrapTestCase.cpp | 265 +++++++++++++++ 5 files changed, 1325 insertions(+) create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_pointTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_polygon_edgeTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_complex_typesTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_trivialTestCase.cpp create mode 100644 graphic/vkgl/src/deqpgles2/functional/Deqpgles2cube_wrapTestCase.cpp diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_pointTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_pointTestCase.cpp new file mode 100644 index 000000000..f96e751ec --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_pointTestCase.cpp @@ -0,0 +1,319 @@ +/* + * 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 "../ActsDeqpgles20016TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015701, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015701 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.cl" + "ipping.point.point_z_clip", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015701 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015701 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015702, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015702 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.p" + "oint.point_z_clip_viewport_center", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015702 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015702 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015703, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015703 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.p" + "oint.point_z_clip_viewport_corner", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015703 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015703 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015704, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015704 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping." + "point.point_clip_viewport_center", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015704 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015704 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015705, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015705 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping." + "point.point_clip_viewport_corner", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015705 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015705 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015706, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015706 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipp" + "ing.point.wide_point_z_clip", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015706 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015706 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015707, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015707 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.poin" + "t.wide_point_z_clip_viewport_center", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015707 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015707 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015708, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015708 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.poin" + "t.wide_point_z_clip_viewport_corner", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015708 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015708 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015709, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015709 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clip" + "ping.point.wide_point_clip", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015709 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015709 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015710, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015710 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.poi" + "nt.wide_point_clip_viewport_center", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015710 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015710 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015711, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015711 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping.poi" + "nt.wide_point_clip_viewport_corner", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015711 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015711 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_polygon_edgeTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_polygon_edgeTestCase.cpp new file mode 100644 index 000000000..ba86b5b02 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2clipping_polygon_edgeTestCase.cpp @@ -0,0 +1,265 @@ +/* + * 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 "../ActsDeqpgles20016TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015776, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015776 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_at_origin_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015776 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015776 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015777, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015777 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_at_origin_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015777 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015777 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015778, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015778 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_at_origin_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015778 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015778 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015779, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015779 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_at_origin_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015779 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015779 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015780, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015780 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_at_origin_4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015780 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015780 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015781, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015781 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_near_edge_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015781 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015781 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015782, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015782 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_near_edge_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015782 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015782 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015783, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015783 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clipping" + ".polygon_edge.quad_near_edge_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015783 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015783 end"; +} + +static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015784, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_015784 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.clip" + "ping.polygon_edge.poly_fan", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_015784 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_015784 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_complex_typesTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_complex_typesTestCase.cpp new file mode 100644 index 000000000..93e38f252 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_complex_typesTestCase.cpp @@ -0,0 +1,238 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20008TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007894, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007894 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_" + "expressions.complex_types.struct_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007894 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007894 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007895, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007895 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_e" + "xpressions.complex_types.struct_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007895 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007895 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007896, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007896 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_exp" + "ressions.complex_types.nested_struct_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007896 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007896 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007897, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007897 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_expr" + "essions.complex_types.nested_struct_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007897 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007897 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007898, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007898 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant" + "_expressions.complex_types.array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007898 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007898 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007899, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007899 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_" + "expressions.complex_types.array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007899 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007899 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007900, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007900 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_express" + "ions.complex_types.nested_builtin_funcs_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007900 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007900 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007901, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007901 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.constant_expressi" + "ons.complex_types.nested_builtin_funcs_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007901 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007901 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_trivialTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_trivialTestCase.cpp new file mode 100644 index 000000000..5b7a53959 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2constant_expressions_trivialTestCase.cpp @@ -0,0 +1,238 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20008TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007870, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007870 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.const" + "ant_expressions.trivial.float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007870 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007870 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007871, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007871 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.consta" + "nt_expressions.trivial.float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007871 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007871 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007872, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007872 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.cons" + "tant_expressions.trivial.int_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007872 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007872 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007873, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007873 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.const" + "ant_expressions.trivial.int_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007873 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007873 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007874, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007874 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.const" + "ant_expressions.trivial.bool_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007874 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007874 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007875, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007875 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.consta" + "nt_expressions.trivial.bool_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007875 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007875 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007876, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007876 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.const" + "ant_expressions.trivial.cast_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007876 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007876 end"; +} + +static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007877, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_007877 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.consta" + "nt_expressions.trivial.cast_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_007877 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_007877 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2cube_wrapTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2cube_wrapTestCase.cpp new file mode 100644 index 000000000..8e5022290 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2cube_wrapTestCase.cpp @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20011TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010992, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010992 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".vertex.cube.wrap.clamp_clamp", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010992 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010992 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010993, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010993 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".vertex.cube.wrap.clamp_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010993 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010993 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010994, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010994 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".vertex.cube.wrap.clamp_mirror", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010994 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010994 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010995, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010995 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".vertex.cube.wrap.repeat_clamp", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010995 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010995 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010996, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010996 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "vertex.cube.wrap.repeat_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010996 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010996 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010997, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010997 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "vertex.cube.wrap.repeat_mirror", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010997 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010997 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010998, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010998 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".vertex.cube.wrap.mirror_clamp", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010998 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010998 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010999, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010999 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "vertex.cube.wrap.mirror_repeat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010999 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010999 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_011000, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_011000 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "vertex.cube.wrap.mirror_mirror", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_011000 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_011000 end"; +} -- GitLab