diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_bufferTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_bufferTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..6fdbd2ad523aab601da2947f54ef3fdb589eb83b --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_bufferTestCase.cpp @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016338, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016338 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.draw.draw_e" + "lements.indices.buffer.index_byte", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016338 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016338 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016339, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016339 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.draw.draw_e" + "lements.indices.buffer.index_short", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016339 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016339 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_unaligned_user_ptrTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_unaligned_user_ptrTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..da298c8f56a8c298024f0ed3e1b3e032397d1499 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_unaligned_user_ptrTestCase.cpp @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016337, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016337 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.draw.draw_element" + "s.indices.unaligned_user_ptr.index_short", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016337 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016337 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_user_ptrTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_user_ptrTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..adbdf1cee4d9d4dbc0bec84184d435364cfe5d73 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2indices_user_ptrTestCase.cpp @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016335, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016335 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.draw.draw_el" + "ements.indices.user_ptr.index_byte", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016335 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016335 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016336, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016336 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.draw.draw_el" + "ements.indices.user_ptr.index_short", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016336 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016336 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basicTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basicTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..709b38c819d52c46eb3c1984ddd2b9247b982432 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basicTestCase.cpp @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20015TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014125, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014125 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api" + ".info_query.multiple_basic.vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014125 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014125 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014126, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014126 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api." + "info_query.multiple_basic.fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014126 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014126 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014127, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014127 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_ap" + "i.info_query.multiple_basic.both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014127 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014127 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basic_arrayTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basic_arrayTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f2fe9d9e198198209ad2a556a81398d89fe53a96 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_basic_arrayTestCase.cpp @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20015TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014128, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014128 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.in" + "fo_query.multiple_basic_array.vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014128 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014128 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014129, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014129 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.inf" + "o_query.multiple_basic_array.fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014129 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014129 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014130, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014130 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.i" + "nfo_query.multiple_basic_array.both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014130 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014130 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_nested_structs_arraysTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_nested_structs_arraysTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..179f2d07d97277cb0538973059b12b07a7d6fcda --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2info_query_multiple_nested_structs_arraysTestCase.cpp @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20015TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014131, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014131 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.info_qu" + "ery.multiple_nested_structs_arrays.vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014131 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014131 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014132, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014132 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.info_que" + "ry.multiple_nested_structs_arrays.fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014132 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014132 end"; +} + +static HWTEST_F(ActsDeqpgles20015TestSuite, TestCase_014133, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_014133 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.uniform_api.info_q" + "uery.multiple_nested_structs_arrays.both", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20015TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20015TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20015TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20015TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20015TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_014133 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_014133 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bindTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bindTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..0b010336be74c40d3ee36322f9254580624bcc5a --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bindTestCase.cpp @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016469, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016469 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional" + ".lifetime.bind.buffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016469 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016469 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016470, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016470 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional" + ".lifetime.bind.texture", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016470 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016470 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016471, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016471 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.li" + "fetime.bind.renderbuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016471 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016471 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016472, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016472 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.l" + "ifetime.bind.framebuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016472 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016472 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bind_no_genTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bind_no_genTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..c5fadf26fed63e73401cd8b64ca7fb8bab753384 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_bind_no_genTestCase.cpp @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016477, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016477 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.li" + "fetime.bind_no_gen.buffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016477 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016477 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016478, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016478 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lif" + "etime.bind_no_gen.texture", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016478 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016478 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016479, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016479 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lifet" + "ime.bind_no_gen.renderbuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016479 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016479 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016480, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016480 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lifet" + "ime.bind_no_gen.framebuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016480 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016480 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_deleteTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_deleteTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..c6ab1df2fde76d4facd1b241a5f8e1136c2b66ab --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_deleteTestCase.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 "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016463, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016463 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional." + "lifetime.delete.buffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016463 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016463 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016464, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016464 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional." + "lifetime.delete.texture", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016464 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016464 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016465, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016465 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lif" + "etime.delete.renderbuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016465 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016465 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016466, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016466 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.li" + "fetime.delete.framebuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016466 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016466 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016467, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016467 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional." + "lifetime.delete.shader", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016467 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016467 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016468, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016468 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional." + "lifetime.delete.program", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016468 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016468 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_boundTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_boundTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f22dfea4116c0c37b09cefca51ce6eefde634e3b --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_boundTestCase.cpp @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016473, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016473 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lif" + "etime.delete_bound.buffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016473 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016473 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016474, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016474 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lif" + "etime.delete_bound.texture", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016474 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016474 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016475, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016475 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lifeti" + "me.delete_bound.renderbuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016475 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016475 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016476, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016476 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lifet" + "ime.delete_bound.framebuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016476 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016476 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_usedTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_usedTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fd735ab37c296276347f7c108f18a3b2115ae4ff --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_delete_usedTestCase.cpp @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016481, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016481 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.lif" + "etime.delete_used.program", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016481 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016481 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_genTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_genTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2dd7ec67068c810f83db71128785792ffb41024c --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2lifetime_genTestCase.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 "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20017TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016457, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016457 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functiona" + "l.lifetime.gen.buffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016457 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016457 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016458, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016458 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional" + ".lifetime.gen.texture", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016458 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016458 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016459, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016459 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.l" + "ifetime.gen.renderbuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016459 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016459 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016460, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016460 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.l" + "ifetime.gen.framebuffer", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016460 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016460 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016461, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016461 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functiona" + "l.lifetime.gen.shader", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016461 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016461 end"; +} + +static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016462, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_016462 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional" + ".lifetime.gen.program", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_016462 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_016462 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2loops_customTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2loops_customTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..0d897127854954af9282b4bd8ac555be245cdfe4 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2loops_customTestCase.cpp @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Deqpgles2BaseFunc.h" +#include "../ActsDeqpgles20004TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20004TestSuite, TestCase_003931, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_003931 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.loops." + "custom.continue_in_fragment_for_loop", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20004TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20004TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20004TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20004TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20004TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_003931 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_003931 end"; +}