diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31core_vertex_attrib_bindingTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31core_vertex_attrib_bindingTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d35540d03278984a0a36bfd1eb4622c192a4816d --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31core_vertex_attrib_bindingTestCase.cpp @@ -0,0 +1,643 @@ +/* + * 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 "../ActsKhrgles310002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001813, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001813 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_a" + "ttrib_binding.basic-usage", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001813 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001813 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001814, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001814 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001814 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001814 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001815, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001815 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001815 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001815 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001816, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001816 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001816 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001816 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001817, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001817 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001817 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001817 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001818, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001818 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001818 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001818 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001819, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001819 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001819 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001819 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001820, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001820 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001820 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001820 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001821, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001821 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attr" + "ib_binding.basic-input-case9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001821 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001821 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001822, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001822 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.basic-input-case11", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001822 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001822 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001823, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001823 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.basic-input-case12", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001823 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001823 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001824, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001824 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.basic-inputI-case1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001824 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001824 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001825, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001825 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.basic-inputI-case2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001825 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001825 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001826, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001826 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.basic-inputI-case3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001826 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001826 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001827, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001827 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_at" + "trib_binding.basic-state1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001827 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001827 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001828, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001828 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_at" + "trib_binding.basic-state2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001828 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001828 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001829, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001829 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_" + "binding.advanced-bindingUpdate", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001829 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001829 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001830, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001830 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attri" + "b_binding.advanced-iterations", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001830 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001830 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001831, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001831 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_binding.adv" + "anced-largeStrideAndOffsetsNewAndLegacyAPI", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001831 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001831 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001832, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001832 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_b" + "inding.negative-bindVertexBuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001832 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001832 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001833, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001833 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_bi" + "nding.negative-vertexAttribFormat", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001833 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001833 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001834, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001834 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_bin" + "ding.negative-vertexAttribBinding", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001834 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001834 end"; +} + +static HWTEST_F(ActsKhrgles310002TestSuite, TestCase_001835, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001835 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.vertex_attrib_bin" + "ding.negative-vertexAttribDivisor", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001835 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001835 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldExtractTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldExtractTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e789f8e33fe8611464e875329ab1b9666c129cb3 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31shader_bitfield_operation_bitfieldExtractTestCase.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_000392, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000392 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000392 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000392 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000393, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000393 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000393 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000393 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000394, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000394 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000394 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000394 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000395, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000395 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000395 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000395 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000396, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000396 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000396 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000396 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000397, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000397 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000397 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000397 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000398, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000398 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000398 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000398 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000399, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000399 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000399 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000399 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000400, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000400 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000400 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000400 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000401, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000401 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000401 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000401 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000402, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000402 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000402 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000402 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000403, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000403 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000403 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000403 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000404, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000404 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000404 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000404 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000405, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000405 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000405 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000405 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000406, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000406 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000406 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000406 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000407, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000407 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000407 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000407 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000408, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000408 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldExtract.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_000408 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000408 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000409, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000409 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldExtract.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_000409 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000409 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000410, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000410 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldExtract.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_000410 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000410 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000411, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000411 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield" + "_operation.bitfieldExtract.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_000411 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000411 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000412, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000412 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000412 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000412 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000413, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000413 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000413 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000413 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000414, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000414 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000414 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000414 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000415, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000415 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000415 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000415 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000416, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000416 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000416 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000416 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000417, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000417 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000417 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000417 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000418, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000418 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000418 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000418 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000419, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000419 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000419 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000419 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000420, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000420 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000420 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000420 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000421, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000421 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000421 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000421 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000422, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000422 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000422 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000422 end"; +} + +static HWTEST_F(ActsKhrgles310001TestSuite, TestCase_000423, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000423 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.shader_bitfield_" + "operation.bitfieldExtract.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_000423 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000423 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgba8iTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgba8iTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..000da4d0bdc50b3a071d95f95540ddbf50890ca3 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgba8iTestCase.cpp @@ -0,0 +1,292 @@ +/* + * 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 "../ActsKhrgles310004TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003395, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003395 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgba8i.0_0_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003395 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003395 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003396, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003396 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgba8i.1_0_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003396 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003396 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003397, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003397 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_0_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003397 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003397 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003398, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003398 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgba8i.1_1_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003398 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003398 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003399, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003399 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_1_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003399 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003399 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003400, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003400 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_16_0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003400 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003400 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003401, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003401 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgba8i.1_1_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003401 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003401 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003402, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003402 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_1_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003402 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003402 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003403, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003403 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_16_1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003403 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003403 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003404, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003404 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rgba8i.16_16_4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003404 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003404 end"; +}