diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rgb10a2uiTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rgb10a2uiTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..225a35b41c3d6e8853ad0ae3520520ebb35c7668 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage2d_rgb10a2uiTestCase.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_002965, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002965 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rgb10a2ui.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_002965 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002965 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002966, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002966 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rgb10a2ui.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_002966 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002966 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002967, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002967 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rgb10a2ui.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_002967 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002967 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002968, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002968 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rgb10a2ui.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_002968 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002968 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002969, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002969 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage2d.rgb10a2ui.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_002969 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002969 end"; +} + +static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002970, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002970 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragemo" + "des.teximage2d.rgb10a2ui.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_002970 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002970 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r16uiTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r16uiTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..8a9f466ffa0ab714fc32d2e6f7ef46f3030b78ef --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r16uiTestCase.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_003055, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003055 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003055 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003055 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003056, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003056 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003056 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003056 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003057, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003057 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003057 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003057 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003058, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003058 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003058 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003058 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003059, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003059 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003059 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003059 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003060, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003060 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r16ui.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_003060 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003060 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003061, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003061 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003061 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003061 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003062, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003062 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r16ui.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_003062 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003062 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003063, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003063 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r16ui.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_003063 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003063 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003064, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003064 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r16ui.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_003064 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003064 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r32uiTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r32uiTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e830a29f05d66549bdb69f53c106ea11aa7aeffc --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r32uiTestCase.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_003075, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003075 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003075 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003075 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003076, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003076 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003076 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003076 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003077, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003077 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003077 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003077 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003078, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003078 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003078 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003078 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003079, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003079 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003079 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003079 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003080, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003080 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r32ui.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_003080 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003080 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003081, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003081 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003081 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003081 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003082, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003082 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.r32ui.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_003082 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003082 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003083, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003083 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r32ui.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_003083 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003083 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003084, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003084 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.r32ui.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_003084 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003084 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg16fTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg16fTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4816e81eab2dd2ec44b5bcf299d3a7f76c581195 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg16fTestCase.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_003115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003115 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003116 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003117 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003118 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003119 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg16f.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_003120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003120 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003121, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003121 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003121 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003121 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003122, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003122 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg16f.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_003122 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003122 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003123, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003123 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg16f.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_003123 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003123 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003124, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003124 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg16f.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_003124 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003124 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8iTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8iTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..41b2a7c513b497ba0d8ff2e11c83cb94562cbbb3 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8iTestCase.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_003145, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003145 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rg8i.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_003145 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003145 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003146, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003146 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rg8i.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_003146 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003146 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003147, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003147 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003147 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003147 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003148, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003148 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rg8i.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_003148 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003148 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003149, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003149 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003149 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003149 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003150, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003150 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003150 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003150 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003151, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003151 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rg8i.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_003151 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003151 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003152, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003152 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003152 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003152 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003153, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003153 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003153 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003153 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003154, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003154 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8i.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_003154 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003154 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8uiTestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8uiTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..cf2ba1a5842a6242a4e9a2fc9d3da8710a231cb1 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rg8uiTestCase.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_003135, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003135 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003135 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003135 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003136, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003136 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003136 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003136 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003137, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003137 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003137 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003137 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003138, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003138 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003138 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003138 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003139, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003139 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003139 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003139 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003140, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003140 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg8ui.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_003140 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003140 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003141, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003141 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003141 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003141 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003142, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003142 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rg8ui.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_003142 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003142 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003143, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003143 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg8ui.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_003143 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003143 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003144, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003144 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstoragem" + "odes.teximage3d.rg8ui.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_003144 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003144 end"; +} diff --git a/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgb8TestCase.cpp b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgb8TestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f3a249764438902b26186b453a2d3192b89d51c8 --- /dev/null +++ b/graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_rgb8TestCase.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_003195, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003195 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rgb8.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_003195 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003195 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003196, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003196 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rgb8.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_003196 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003196 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003197, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003197 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003197 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003197 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003198, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003198 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rgb8.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_003198 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003198 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003199, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003199 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003199 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003199 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003200, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003200 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003200 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003200 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003201, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003201 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorag" + "emodes.teximage3d.rgb8.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_003201 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003201 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003202, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003202 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003202 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003202 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003203, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003203 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003203 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003203 end"; +} + +static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003204, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003204 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES31.core.pixelstorage" + "modes.teximage3d.rgb8.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_003204 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003204 end"; +}