diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31core_texture_border_clampTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31core_texture_border_clampTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a60baf4ad0b7aff30e32a5a2e4c9115aa17f7af7 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31core_texture_border_clampTestCase.cpp @@ -0,0 +1,886 @@ +/* + * 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 "../Khrgles31BaseFunc.h" +#include "../ActsKhrgles310003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002648, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002648 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.border_color_errors", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002648 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002648 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002649, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002649 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.texparameteri_errors", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002649 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002649 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002650, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002650 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border" + "_clamp.gettexparameteri_errors", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002650 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002650 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002651, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002651 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_clamp.s" + "amplerparameteri_non_gen_sampler_error", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002651 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002651 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002652, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002652 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_clam" + "p.samplerparameteri_with_wrong_pname", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002652 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002652 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002653, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002653 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_cl" + "amp.samplerparameteri_border_color", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002653 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002653 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002654, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002654 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bo" + "rder_clamp.Texture2DRGBA32F", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002654 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002654 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002655, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002655 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture2DR32I", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002655 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002655 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002656, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002656 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture2DR32UI", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002656 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002656 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002657, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002657 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture2DRGBA8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002657 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002657 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002658, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002658 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture2DDC32F", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002658 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002658 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002659, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002659 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture2DDC16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002659 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002659 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002660, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002660 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DCompressed", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002660 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002660 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002661, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002661 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_borde" + "r_clamp.Texture2DArrayRGBA32F", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002661 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002661 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002662, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002662 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bor" + "der_clamp.Texture2DArrayR32I", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002662 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002662 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002663, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002663 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DArrayR32UI", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002663 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002663 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002664, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002664 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DArrayRGBA8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002664 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002664 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002665, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002665 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border" + "_clamp.Texture2DArrayCompressed", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002665 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002665 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002666, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002666 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bo" + "rder_clamp.Texture3DRGBA32F", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002666 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002666 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002667, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002667 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture3DR32I", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002667 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002667 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002668, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002668 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture3DR32UI", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002668 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002668 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002669, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002669 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_b" + "order_clamp.Texture3DRGBA8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002669 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002669 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002670, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002670 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_borde" + "r_clamp.Texture2DRGBA32FLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002670 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002670 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002671, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002671 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DRGBA8Linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002671 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002671 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002672, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002672 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DDC32FLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002672 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002672 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002673, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002673 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture2DDC16Linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002673 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002673 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002674, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002674 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_" + "clamp.Texture2DCompressedLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002674 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002674 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002675, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002675 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_c" + "lamp.Texture2DArrayRGBA32FLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002675 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002675 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002676, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002676 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_" + "clamp.Texture2DArrayRGBA8Linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002676 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002676 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002677, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002677 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_border_cl" + "amp.Texture2DArrayCompressedLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002677 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002677 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002678, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002678 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_borde" + "r_clamp.Texture3DRGBA32FLinear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002678 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002678 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002679, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002679 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.texture_bord" + "er_clamp.Texture3DRGBA8Linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002679 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002679 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldInsertTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldInsertTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..95ad8292972fc5c574581ac409ab1568620e716d --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldInsertTestCase.cpp @@ -0,0 +1,886 @@ +/* + * 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 "../Khrgles31BaseFunc.h" +#include "../ActsKhrgles310001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000424, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000424 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.uint_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000424 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000424 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000425, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000425 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.uint_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000425 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000425 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000426, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000426 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.uint_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000426 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000426 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000427, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000427 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.uint_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000427 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000427 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000428, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000428 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec2_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000428 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000428 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000429, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000429 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec2_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000429 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000429 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000430, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000430 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec2_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000430 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000430 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000431, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000431 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec2_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000431 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000431 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000432, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000432 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec3_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000432 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000432 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000433, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000433 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec3_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000433 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000433 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000434, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000434 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec3_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000434 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000434 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000435, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000435 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec3_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000435 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000435 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000436, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000436 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec4_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000436 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000436 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000437, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000437 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec4_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000437 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000437 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000438, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000438 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec4_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000438 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000438 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000439, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000439 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.uvec4_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000439 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000439 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000440, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000440 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.int_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000440 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000440 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000441, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000441 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.int_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000441 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000441 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000442, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000442 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.int_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000442 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000442 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000443, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000443 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldInsert.int_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000443 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000443 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000444, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000444 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec2_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000444 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000444 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000445, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000445 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec2_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000445 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000445 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000446, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000446 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec2_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000446 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000446 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000447, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000447 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec2_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000447 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000447 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000448, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000448 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec3_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000448 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000448 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000449, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000449 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec3_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000449 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000449 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000450, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000450 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec3_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000450 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000450 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000451, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000451 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec3_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000451 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000451 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000452, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000452 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec4_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000452 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000452 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000453, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000453 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec4_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000453 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000453 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000454, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000454 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec4_2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000454 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000454 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000455, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000455 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldInsert.ivec4_3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000455 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000455 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rg8snormTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rg8snormTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..6dcf0c86c03a1fd035eed3b823a6f0305c537c16 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rg8snormTestCase.cpp @@ -0,0 +1,184 @@ +/* + * 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 "../Khrgles31BaseFunc.h" +#include "../ActsKhrgles310003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002785, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002785 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage2d.rg8snorm.0_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002785 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002785 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002786, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002786 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage2d.rg8snorm.1_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002786 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002786 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002787, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002787 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rg8snorm.16_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002787 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002787 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002788, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002788 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage2d.rg8snorm.1_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002788 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002788 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002789, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002789 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rg8snorm.16_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002789 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002789 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002790, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002790 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rg8snorm.16_16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002790 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002790 end"; +}