diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3indexing_uniform_arrayTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3indexing_uniform_arrayTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2efb5ab16ce1893526afb43cc6f2762f8b6318ce --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3indexing_uniform_arrayTestCase.cpp @@ -0,0 +1,886 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000089, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000089 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.float_static_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000089 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000089 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000090, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000090 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.float_static_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000090 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000090 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000091, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000091 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.float_dynamic_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000091 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000091 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000092, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000092 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform" + "_array.float_dynamic_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000092 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000092 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000093, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000093 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.float_static_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000093 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000093 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000094, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000094 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_a" + "rray.float_static_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000094 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000094 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000095, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000095 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.float_dynamic_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000095 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000095 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000096, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000096 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_a" + "rray.float_dynamic_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000096 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000096 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000097, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000097 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec2_static_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000097 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000097 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000098, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000098 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec2_static_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000098 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000098 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000099, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000099 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec2_dynamic_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000099 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000099 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000100, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000100 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec2_dynamic_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000100 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000100 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000101, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000101 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform" + "_array.vec2_static_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000101 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000101 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000102, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000102 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec2_static_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000102 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000102 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000103, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000103 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec2_dynamic_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000103 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000103 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000104, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000104 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_a" + "rray.vec2_dynamic_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000104 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000104 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000105, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000105 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec3_static_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000105 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000105 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000106, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000106 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec3_static_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000106 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000106 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000107, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000107 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec3_dynamic_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000107 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000107 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000108, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000108 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec3_dynamic_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000108 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000108 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000109, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000109 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform" + "_array.vec3_static_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000109 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000109 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000110, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000110 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec3_static_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000110 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000110 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000111, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000111 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec3_dynamic_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000111 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000111 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000112, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000112 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_a" + "rray.vec3_dynamic_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000112 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000112 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000113, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000113 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec4_static_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000113 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000113 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000114, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000114 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec4_static_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000114 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000114 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifo" + "rm_array.vec4_dynamic_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000115 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.unifor" + "m_array.vec4_dynamic_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000116 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform" + "_array.vec4_static_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000117 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec4_static_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000118 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_" + "array.vec4_dynamic_loop_read_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000119 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.indexing.uniform_a" + "rray.vec4_dynamic_loop_read_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000120 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_packedTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_packedTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f762d962267bf226fb4b05007f92c7da1fa7c5d7 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_packedTestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002047, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002047 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002047 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002047 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002048, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002048 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002048 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002048 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002049, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002049 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002049 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002049 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002050, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002050 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002050 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002050 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002051, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002051 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002051 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002051 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002052, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002052 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002052 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002052 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002053, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002053 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002053 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002053 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002054, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002054 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002054 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002054 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002055, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002055 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002055 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002055 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002056, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002056 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002056 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002056 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002057, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002057 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002057 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002057 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002058, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002058 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002058 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002058 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002059, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002059 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002059 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002059 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002060, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002060 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002060 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002060 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002061, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002061 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002061 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002061 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002062, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002062 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002062 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002062 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002063, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002063 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002063 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002063 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002064, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002064 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.packed.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002064 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002064 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002065, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002065 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.packed.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002065 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002065 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002066, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002066 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002066 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002066 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002067, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002067 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.packed.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002067 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002067 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002068, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002068 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.packed.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002068 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002068 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002069, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002069 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.packed.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002069 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002069 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002070, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002070 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.packed.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002070 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002070 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002071, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002071 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.packed.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002071 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002071 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002072, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002072 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002072 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002072 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002073, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002073 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002073 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002073 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002074, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002074 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002074 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002074 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002075, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002075 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002075 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002075 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002076, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002076 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002076 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002076 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002077, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002077 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002077 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002077 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002078, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002078 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002078 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002078 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002079, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002079 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002079 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002079 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002080, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002080 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002080 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002080 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002081, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002081 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002081 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002081 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002082, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002082 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002082 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002082 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002083, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002083 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002083 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002083 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002084, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002084 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002084 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002084 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002085, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002085 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002085 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002085 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002086, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002086 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002086 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002086 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002087, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002087 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.packed.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002087 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002087 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002088, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002088 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.packed.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002088 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002088 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002089, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002089 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.packed.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002089 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002089 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_sharedTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_sharedTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9150b9ac66db33f5b2fa7233eb896037e5b59d09 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_sharedTestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002004, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002004 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002004 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002004 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002005, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002005 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002005 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002005 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002006, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002006 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002006 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002006 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002007, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002007 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002007 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002007 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002008, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002008 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002008 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002008 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002009, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002009 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002009 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002009 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002010, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002010 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002010 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002010 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002011, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002011 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002011 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002011 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002012, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002012 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002012 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002012 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002013, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002013 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002013 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002013 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002014, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002014 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002014 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002014 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002015, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002015 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002015 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002015 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002016, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002016 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002016 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002016 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002017, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002017 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002017 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002017 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002018, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002018 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002018 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002018 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002019, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002019 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002019 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002019 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002020, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002020 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002020 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002020 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002021, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002021 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.shared.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002021 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002021 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002022, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002022 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.shared.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002022 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002022 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002023, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002023 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002023 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002023 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002024, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002024 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.shared.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002024 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002024 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002025, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002025 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.shared.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002025 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002025 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002026, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002026 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.shared.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002026 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002026 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002027, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002027 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.shared.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002027 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002027 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002028, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002028 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.shared.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002028 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002028 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002029, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002029 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002029 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002029 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002030, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002030 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002030 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002030 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002031, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002031 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002031 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002031 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002032, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002032 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002032 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002032 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002033, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002033 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002033 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002033 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002034, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002034 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002034 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002034 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002035, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002035 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002035 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002035 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002036, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002036 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002036 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002036 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002037, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002037 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002037 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002037 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002038, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002038 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002038 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002038 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002039, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002039 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002039 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002039 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002040, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002040 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002040 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002040 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002041, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002041 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002041 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002041 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002042, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002042 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002042 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002042 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002043, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002043 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002043 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002043 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002044, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002044 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.shared.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002044 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002044 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002045, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002045 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.shared.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002045 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002045 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002046, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002046 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.shared.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002046 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002046 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_std140TestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_std140TestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..0b647d1426e5784e37e3319d67b31971cab9554e --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3instance_array_basic_type_std140TestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002090, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002090 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002090 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002090 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002091, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002091 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002091 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002091 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002092, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002092 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002092 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002092 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002093, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002093 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002093 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002093 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002094, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002094 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002094 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002094 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002095, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002095 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002095 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002095 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002096, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002096 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002096 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002096 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002097, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002097 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002097 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002097 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002098, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002098 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002098 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002098 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002099, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002099 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002099 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002099 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002100, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002100 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002100 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002100 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002101, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002101 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002101 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002101 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002102, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002102 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002102 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002102 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002103, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002103 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002103 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002103 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002104, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002104 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002104 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002104 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002105, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002105 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002105 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002105 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002106, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002106 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002106 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002106 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002107, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002107 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.std140.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002107 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002107 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002108, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002108 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.std140.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002108 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002108 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002109, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002109 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002109 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002109 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002110, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002110 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.std140.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002110 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002110 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002111, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002111 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.std140.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002111 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002111 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002112, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002112 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.in" + "stance_array_basic_type.std140.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002112 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002112 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002113, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002113 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instanc" + "e_array_basic_type.std140.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002113 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002113 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002114, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002114 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_" + "array_basic_type.std140.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002114 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002114 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002115, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002115 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002115 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002115 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002116, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002116 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002116 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002116 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002117, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002117 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002117 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002117 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002118, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002118 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002118 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002118 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002119, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002119 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002119 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002119 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002120, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002120 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002120 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002120 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002121, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002121 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002121 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002121 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002122, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002122 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002122 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002122 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002123, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002123 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002123 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002123 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002124, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002124 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002124 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002124 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002125, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002125 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002125 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002125 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002126, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002126 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002126 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002126 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002127, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002127 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002127 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002127 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002128, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002128 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002128 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002128 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002129, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002129 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002129 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002129 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002130, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002130 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.ins" + "tance_array_basic_type.std140.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002130 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002130 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002131, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002131 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance" + "_array_basic_type.std140.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002131 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002131 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002132, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002132 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.instance_a" + "rray_basic_type.std140.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002132 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002132 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3name_hiding_basicTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3name_hiding_basicTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..745c60fd3f4a6af1aa95f1f15b459301829086c1 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3name_hiding_basicTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001396, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001396 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hidin" + "g.basic.hidden_name_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001396 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001396 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001397, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001397 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hiding" + ".basic.hidden_name_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001397 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001397 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001398, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001398 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hidin" + "g.basic.hidden_name_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001398 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001398 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001399, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001399 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hiding" + ".basic.hidden_name_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001399 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001399 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001400, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001400 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hidin" + "g.basic.hidden_name_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001400 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001400 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001401, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001401 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.name_hiding" + ".basic.hidden_name_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001401 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001401 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_builtinTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_builtinTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..493cdaed445208fa631d9d9906b2839b232577a8 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_builtinTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001206, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001206 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproc" + "essor.builtin.line_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001206 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001206 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001207, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001207 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.builtin.line_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001207 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001207 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001208, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001208 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.builtin.line_and_file_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001208 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001208 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001209, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001209 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".builtin.line_and_file_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001209 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001209 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_conditionalsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_conditionalsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1e0ca9ae58ab2c93115e59c3b76e963ddf8539fb --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_conditionalsTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001164, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001164 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.conditionals.ifdef_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001164 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001164 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001165, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001165 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".conditionals.ifdef_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001165 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001165 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001166, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001166 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.conditionals.ifdef_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001166 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001166 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001167, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001167 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".conditionals.ifdef_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001167 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001167 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001168, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001168 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.conditionals.ifdef_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001168 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001168 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001169, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001169 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".conditionals.ifdef_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001169 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001169 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001170, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001170 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.conditionals.ifndef_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001170 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001170 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001171, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001171 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".conditionals.ifndef_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001171 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001171 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001172, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001172 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.conditionals.ifndef_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001172 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001172 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001173, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001173 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".conditionals.ifndef_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001173 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001173 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001174, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001174 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.conditio" + "nals.mixed_conditional_inclusion_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001174 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001174 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001175, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001175 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.condition" + "als.mixed_conditional_inclusion_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001175 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001175 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001176, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001176 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "conditionals.nested_if_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001176 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001176 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001177, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001177 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.c" + "onditionals.nested_if_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001177 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001177 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001178, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001178 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "conditionals.nested_if_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001178 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001178 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001179, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001179 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.c" + "onditionals.nested_if_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001179 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001179 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001180, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001180 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "conditionals.nested_if_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001180 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001180 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001181, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001181 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.c" + "onditionals.nested_if_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001181 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001181 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_directiveTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_directiveTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d76bbe78ad8d71d8781aa8916b597a003819531b --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_directiveTestCase.cpp @@ -0,0 +1,670 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001182, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001182 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "directive.version_is_less_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001182 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001182 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001183, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001183 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.d" + "irective.version_is_less_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001183 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001183 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001184, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001184 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "directive.version_is_more_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001184 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001184 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001185, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001185 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.d" + "irective.version_is_more_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001185 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001185 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001186, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001186 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.di" + "rective.version_missing_es_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001186 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001186 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001187, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001187 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.dir" + "ective.version_missing_es_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001187 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001187 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001188, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001188 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "directive.version_missing_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001188 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001188 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001189, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001189 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.d" + "irective.version_missing_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001189 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001189 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001190, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001190 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.directi" + "ve.version_not_first_statement_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001190 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001190 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001191, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001191 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.directiv" + "e.version_not_first_statement_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001191 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001191 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001192, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001192 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.directi" + "ve.version_not_first_statement_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001192 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001192 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001193, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001193 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.directiv" + "e.version_not_first_statement_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001193 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001193 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001194, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001194 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.dire" + "ctive.version_invalid_token_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001194 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001194 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001195, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001195 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.direc" + "tive.version_invalid_token_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001195 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001195 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001196, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001196 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.dire" + "ctive.version_invalid_token_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001196 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001196 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001197, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001197 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.direc" + "tive.version_invalid_token_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001197 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001197 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001198, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001198 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "directive.invalid_version_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001198 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001198 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001199, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001199 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.d" + "irective.invalid_version_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001199 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001199 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001200, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001200 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.d" + "irective.additional_tokens_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001200 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001200 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001201, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001201 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.di" + "rective.additional_tokens_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001201 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001201 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001202, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001202 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.dir" + "ective.error_with_no_tokens_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001202 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001202 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001203, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001203 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.dire" + "ctive.error_with_no_tokens_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001203 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001203 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001204, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001204 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.directive.error_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001204 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001204 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001205, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001205 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.directive.error_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001205 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001205 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_expressionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_expressionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..6afddc0a76dc1ac56a1c3a226f01d2cc9d5d9205 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_expressionsTestCase.cpp @@ -0,0 +1,1102 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001242, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001242 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".expressions.shift_left_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001242 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001242 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001243, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001243 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.shift_left_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001243 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001243 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001244, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001244 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".expressions.shift_right_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001244 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001244 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001245, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001245 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.shift_right_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001245 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001245 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001246, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001246 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.cmp_less_than_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001246 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001246 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001247, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001247 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xpressions.cmp_less_than_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001247 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001247 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001248, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001248 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.less_or_equal_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001248 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001248 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001249, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001249 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xpressions.less_or_equal_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001249 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001249 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001250, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001250 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.expressions.or_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001250 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001250 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001251, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001251 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.expressions.or_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001251 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001251 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001252, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001252 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.expressions.and_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001252 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001252 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001253, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001253 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.expressions.and_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001253 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001253 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001254, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001254 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.expressions.xor_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001254 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001254 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001255, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001255 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.expressions.xor_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001255 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001255 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001256, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001256 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.expressions.mod_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001256 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001256 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001257, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001257 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.expressions.mod_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001257 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001257 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001258, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001258 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "pressions.parenthesis_value_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001258 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001258 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001259, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001259 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exp" + "ressions.parenthesis_value_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001259 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001259 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001260, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001260 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exp" + "ressions.parenthesis_tricky_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001260 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001260 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001261, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001261 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expr" + "essions.parenthesis_tricky_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001261 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001261 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001262, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001262 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "pressions.parenthesis_if_no_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001262 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001262 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001263, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001263 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exp" + "ressions.parenthesis_if_no_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001263 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001263 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001264, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001264 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xpressions.parenthesis_if_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001264 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001264 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001265, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001265 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "pressions.parenthesis_if_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001265 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001265 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001266, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001266 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expr" + "essions.parenthesis_multi_if_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001266 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001266 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001267, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001267 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expre" + "ssions.parenthesis_multi_if_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001267 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001267 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001268, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001268 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expr" + "essions.parenthesis_single_if_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001268 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001268 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001269, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001269 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expre" + "ssions.parenthesis_single_if_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001269 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001269 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001270, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001270 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expre" + "ssions.parenthesis_ifelse_true_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001270 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001270 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001271, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001271 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expres" + "sions.parenthesis_ifelse_true_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001271 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001271 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001272, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001272 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expres" + "sions.parenthesis_ifelse_false_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001272 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001272 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001273, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001273 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.express" + "ions.parenthesis_ifelse_false_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001273 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001273 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001274, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001274 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.eval_basic_0_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001274 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001274 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001275, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001275 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xpressions.eval_basic_0_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001275 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001275 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001276, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001276 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "expressions.eval_basic_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001276 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001276 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001277, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001277 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xpressions.eval_basic_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001277 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001277 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001278, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001278 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expres" + "sions.eval_simple_precedence_0_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001278 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001278 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001279, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001279 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.express" + "ions.eval_simple_precedence_0_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001279 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001279 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001280, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001280 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.expres" + "sions.eval_simple_precedence_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001280 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001280 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001281, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001281 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.express" + "ions.eval_simple_precedence_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001281 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001281 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_extensionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_extensionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..70d4f868b81e3526ec240f182699aa5b2fd163d2 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_extensionsTestCase.cpp @@ -0,0 +1,778 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001214, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001214 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.extensions.basic_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001214 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001214 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001215, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001215 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocess" + "or.extensions.basic_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001215 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001215 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001216, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001216 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.extensions.macro_exp_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001216 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001216 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001217, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001217 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".extensions.macro_exp_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001217 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001217 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001218, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001218 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exte" + "nsions.missing_extension_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001218 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001218 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001219, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001219 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exten" + "sions.missing_extension_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001219 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001219 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001220, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001220 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exte" + "nsions.invalid_extension_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001220 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001220 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001221, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001221 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exten" + "sions.invalid_extension_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001221 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001221 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001222, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001222 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "extensions.missing_colon_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001222 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001222 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001223, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001223 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xtensions.missing_colon_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001223 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001223 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001224, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001224 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "extensions.expected_colon_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001224 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001224 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001225, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001225 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xtensions.expected_colon_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001225 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001225 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001226, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001226 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.e" + "xtensions.missing_behavior_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001226 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001226 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001227, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001227 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "tensions.missing_behavior_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001227 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001227 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001228, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001228 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "tensions.invalid_behavior_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001228 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001228 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001229, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001229 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ext" + "ensions.invalid_behavior_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001229 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001229 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001230, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001230 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "tensions.invalid_behavior_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001230 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001230 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001231, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001231 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ext" + "ensions.invalid_behavior_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001231 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001231 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001232, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001232 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ex" + "tensions.invalid_behavior_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001232 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001232 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001233, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001233 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ext" + "ensions.invalid_behavior_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001233 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001233 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001234, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001234 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ext" + "ensions.invalid_char_in_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001234 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001234 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001235, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001235 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exte" + "nsions.invalid_char_in_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001235 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001235 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001236, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001236 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exten" + "sions.invalid_char_in_behavior_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001236 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001236 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001237, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001237 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.extens" + "ions.invalid_char_in_behavior_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001237 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001237 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001238, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001238 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.ext" + "ensions.unterminated_comment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001238 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001238 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001239, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001239 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.exte" + "nsions.unterminated_comment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001239 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001239 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001240, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001240 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.extensio" + "ns.after_non_preprocessing_tokens_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001240 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001240 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001241, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001241 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.extension" + "s.after_non_preprocessing_tokens_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001241 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001241 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_function_definitionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_function_definitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..1dee7667d4e422fb721c4f2bd338196047c8c348 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_function_definitionsTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000968, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000968 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.function_defi" + "nitions.same_object_and_function_param_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000968 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000968 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000969, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000969 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.function_defin" + "itions.same_object_and_function_param_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000969 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000969 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000970, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000970 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.func" + "tion_definitions.complex_func_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000970 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000970 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000971, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000971 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.funct" + "ion_definitions.complex_func_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000971 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000971 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000972, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000972 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.function_defini" + "tions.function_definition_with_comments_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000972 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000972 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000973, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000973 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.function_definit" + "ions.function_definition_with_comments_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000973 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000973 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_definitionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_definitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b9732e727ddcccff94e5ca133baf1fa6eb4d3d73 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_definitionsTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000908, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000908 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "definitions.define_non_identifier_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000908 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000908 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000909, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000909 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_d" + "efinitions.define_non_identifier_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000909 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000909 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000910, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000910 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_d" + "efinitions.undef_non_identifier_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000910 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000910 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000911, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000911 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_de" + "finitions.undef_non_identifier_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000911 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000911 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000912, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000912 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_d" + "efinitions.undef_non_identifier_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000912 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000912 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000913, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000913 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_de" + "finitions.undef_non_identifier_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000913 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000913 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_expressionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_expressionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..c125c1ec3bc38920f762b606c3decd80a87ad945 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_expressionsTestCase.cpp @@ -0,0 +1,454 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001282, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001282 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid" + "_expressions.invalid_unary_expr_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001282 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001282 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001283, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001283 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "expressions.invalid_unary_expr_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001283 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001283 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001284, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001284 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid" + "_expressions.invalid_binary_expr_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001284 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001284 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001285, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001285 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "expressions.invalid_binary_expr_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001285 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001285 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001286, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001286 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.inva" + "lid_expressions.missing_expr_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001286 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001286 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001287, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001287 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.inval" + "id_expressions.missing_expr_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001287 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001287 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001288, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001288 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.inval" + "id_expressions.invalid_expr_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001288 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001288 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001289, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001289 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invali" + "d_expressions.invalid_expr_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001289 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001289 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001290, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001290 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.inval" + "id_expressions.invalid_expr_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001290 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001290 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001291, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001291 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invali" + "d_expressions.invalid_expr_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001291 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001291 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001292, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001292 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.inval" + "id_expressions.invalid_expr_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001292 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001292 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001293, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001293 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invali" + "d_expressions.invalid_expr_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001293 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001293 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001294, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001294 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "expressions.unopened_parenthesis_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001294 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001294 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001295, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001295 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_e" + "xpressions.unopened_parenthesis_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001295 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001295 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001296, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001296 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "expressions.unclosed_parenthesis_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001296 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001296 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001297, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001297 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_e" + "xpressions.unclosed_parenthesis_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001297 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001297 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_function_definitionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_function_definitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b1a7e2c21f4aa234a7f323e3147e341be73ccb03 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_function_definitionsTestCase.cpp @@ -0,0 +1,886 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000996, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000996 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000996 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000996 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000997, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000997 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000997 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000997 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000998, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000998 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000998 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000998 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000999, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000999 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000999 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000999 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001000, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001000 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001000 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001000 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001001, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001001 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001001 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001001 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001002, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001002 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001002 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001002 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001003, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001003 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001003 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001003 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001004, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001004 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_5_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001004 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001004 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001005, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001005 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_5_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001005 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001005 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001006, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001006 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_6_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001006 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001006 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001007, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001007 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_6_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001007 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001007 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001008, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001008 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_7_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001008 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001008 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001009, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001009 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_7_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001009 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001009 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001010, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001010 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_" + "function_definitions.arguments_8_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001010 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001010 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001011, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001011 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_f" + "unction_definitions.arguments_8_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001011 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001011 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001012, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001012 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fun" + "ction_definitions.unique_param_name_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001012 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001012 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001013, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001013 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_func" + "tion_definitions.unique_param_name_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001013 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001013 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001014, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001014 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fu" + "nction_definitions.argument_list_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001014 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001014 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001015, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001015 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fun" + "ction_definitions.argument_list_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001015 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001015 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001016, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001016 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fu" + "nction_definitions.argument_list_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001016 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001016 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001017, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001017 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fun" + "ction_definitions.argument_list_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001017 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001017 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001018, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001018 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fu" + "nction_definitions.argument_list_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001018 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001018 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001019, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001019 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_fun" + "ction_definitions.argument_list_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001019 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001019 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001020, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001020 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functi" + "on_definitions.no_closing_parenthesis_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001020 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001020 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001021, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001021 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functio" + "n_definitions.no_closing_parenthesis_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001021 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001021 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001022, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001022 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functi" + "on_definitions.no_closing_parenthesis_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001022 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001022 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001023, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001023 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functio" + "n_definitions.no_closing_parenthesis_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001023 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001023 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001024, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001024 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functi" + "on_definitions.no_closing_parenthesis_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001024 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001024 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001025, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001025 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functio" + "n_definitions.no_closing_parenthesis_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001025 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001025 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001026, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001026 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functi" + "on_definitions.no_closing_parenthesis_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001026 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001026 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_001027, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001027 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_functio" + "n_definitions.no_closing_parenthesis_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001027 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001027 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_opsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_opsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..e60ae139248cfff184481bae0b6c67ba7ed0f661 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_opsTestCase.cpp @@ -0,0 +1,508 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001060, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001060 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "invalid_ops.invalid_op_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001060 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001060 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001061, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001061 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.i" + "nvalid_ops.invalid_op_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001061 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001061 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001062, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001062 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "invalid_ops.invalid_op_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001062 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001062 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001063, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001063 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.i" + "nvalid_ops.invalid_op_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001063 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001063 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001064, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001064 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops." + "invalid_defined_expected_identifier_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001064 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001064 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001065, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001065 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops.i" + "nvalid_defined_expected_identifier_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001065 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001065 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001066, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001066 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops." + "invalid_defined_expected_identifier_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001066 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001066 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001067, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001067 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops.i" + "nvalid_defined_expected_identifier_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001067 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001067 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001068, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001068 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops." + "invalid_defined_expected_identifier_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001068 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001068 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001069, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001069 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops.i" + "nvalid_defined_expected_identifier_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001069 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001069 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001070, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001070 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops." + "invalid_defined_expected_identifier_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001070 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001070 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001071, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001071 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops.i" + "nvalid_defined_expected_identifier_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001071 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001071 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001072, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001072 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops." + "invalid_defined_expected_identifier_5_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001072 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001072 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001073, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001073 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_ops.i" + "nvalid_defined_expected_identifier_5_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001073 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001073 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001074, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001074 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_o" + "ps.invalid_defined_expected_rparen_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001074 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001074 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001075, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001075 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_op" + "s.invalid_defined_expected_rparen_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001075 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001075 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001076, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001076 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.i" + "nvalid_ops.defined_define_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001076 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001076 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001077, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001077 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.in" + "valid_ops.defined_define_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001077 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001077 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_redefinitionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_redefinitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7767f997817c0980c59e12a1a26f356fb7792331 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_invalid_redefinitionsTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000944, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000944 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_r" + "edefinitions.invalid_identifier_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000944 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000944 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000945, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000945 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_re" + "definitions.invalid_identifier_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000945 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000945 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000946, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000946 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_r" + "edefinitions.invalid_identifier_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000946 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000946 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000947, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000947 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.invalid_re" + "definitions.invalid_identifier_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000947 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000947 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_object_redefinitionsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_object_redefinitionsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f6da6d81bb627991a7f2fab87917a1c0ff85c03d --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_object_redefinitionsTestCase.cpp @@ -0,0 +1,832 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000914, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000914 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_r" + "edefinitions.invalid_object_ident_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000914 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000914 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000915, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000915 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_re" + "definitions.invalid_object_ident_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000915 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000915 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000916, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000916 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.invalid_object_whitespace_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000916 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000916 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000917, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000917 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.invalid_object_whitespace_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000917 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000917 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000918, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000918 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_" + "redefinitions.invalid_object_op_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000918 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000918 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000919, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000919 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_r" + "edefinitions.invalid_object_op_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000919 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000919 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000920, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000920 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.invalid_object_floatval_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000920 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000920 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000921, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000921 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.invalid_object_floatval_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000921 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000921 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000922, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000922 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.invalid_object_floatval_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000922 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000922 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000923, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000923 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.invalid_object_floatval_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000923 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000923 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000924, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000924 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_red" + "efinitions.invalid_object_intval_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000924 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000924 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000925, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000925 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.invalid_object_intval_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000925 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000925 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000926, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000926 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_red" + "efinitions.invalid_object_intval_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000926 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000926 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000927, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000927 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.invalid_object_intval_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000927 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000927 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000928, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000928 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_" + "redefinitions.redefine_object_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000928 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000928 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000929, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000929 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_r" + "edefinitions.redefine_object_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000929 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000929 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000930, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000930 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_re" + "definitions.redefine_object_ifdef_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000930 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000930 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000931, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000931 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_red" + "efinitions.redefine_object_ifdef_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000931 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000931 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000932, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000932 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.redefine_object_undef_ifdef_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000932 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000932 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000933, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000933 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redefi" + "nitions.redefine_object_undef_ifdef_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000933 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000933 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000934, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000934 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_re" + "definitions.redefine_object_ifndef_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000934 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000934 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000935, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000935 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_red" + "efinitions.redefine_object_ifndef_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000935 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000935 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000936, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000936 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.redefine_object_defined_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000936 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000936 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000937, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000937 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.redefine_object_defined_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000937 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000937 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000938, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000938 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.redefine_object_defined_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000938 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000938 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000939, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000939 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redef" + "initions.redefine_object_defined_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000939 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000939 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000940, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000940 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_red" + "efinitions.redefine_object_comment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000940 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000940 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000941, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000941 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_rede" + "finitions.redefine_object_comment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000941 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000941 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000942, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000942 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redefini" + "tions.redefine_object_multiline_comment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000942 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000942 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000943, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000943 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.object_redefinit" + "ions.redefine_object_multiline_comment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000943 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000943 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_pragmasTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_pragmasTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..dba6ee80d7c19a4647ff022bd409cc4c322eedbb --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_pragmasTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001210, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001210 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproce" + "ssor.pragmas.pragma_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001210 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001210 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001211, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001211 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preproces" + "sor.pragmas.pragma_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001211 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001211 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001212, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001212 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "pragmas.pragma_macro_exp_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001212 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001212 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001213, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001213 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.p" + "ragmas.pragma_macro_exp_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001213 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001213 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_recursionTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_recursionTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ee09b376c424ff206aaae6d720092827d3f39b57 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_recursionTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000974, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000974 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.recursion.recursion_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000974 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000974 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000975, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000975 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".recursion.recursion_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000975 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000975 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000976, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000976 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.recursion.recursion_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000976 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000976 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000977, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000977 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".recursion.recursion_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000977 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000977 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000978, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000978 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.recursion.recursion_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000978 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000978 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000979, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000979 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".recursion.recursion_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000979 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000979 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000980, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000980 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.recursion.recursion_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000980 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000980 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000981, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000981 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".recursion.recursion_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000981 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000981 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000982, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000982 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocesso" + "r.recursion.recursion_5_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000982 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000982 end"; +} + +static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000983, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000983 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".recursion.recursion_5_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000983 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000983 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_semanticTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_semanticTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4f2c8bdfcbd7a0e29cec347866fc9c6cc143a039 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_semanticTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001028, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001028 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "semantic.ops_as_arguments_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001028 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001028 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001029, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001029 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.s" + "emantic.ops_as_arguments_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001029 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001029 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001030, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001030 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor" + ".semantic.correct_order_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001030 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001030 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001031, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001031 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor." + "semantic.correct_order_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001031 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001031 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_undefined_identifiersTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_undefined_identifiersTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4df6ca8cfd07df33ce14743507f0fba1c55e4d99 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3preprocessor_undefined_identifiersTestCase.cpp @@ -0,0 +1,778 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001078, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001078 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_ide" + "ntifiers.valid_undefined_identifier_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001078 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001078 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001079, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001079 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_iden" + "tifiers.valid_undefined_identifier_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001079 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001079 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001080, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001080 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_ide" + "ntifiers.valid_undefined_identifier_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001080 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001080 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001081, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001081 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_iden" + "tifiers.valid_undefined_identifier_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001081 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001081 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001082, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001082 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_1_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001082 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001082 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001083, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001083 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_1_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001083 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001083 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001084, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001084 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001084 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001084 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001085, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001085 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001085 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001085 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001086, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001086 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001086 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001086 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001087, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001087 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001087 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001087 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001088, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001088 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001088 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001088 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001089, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001089 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001089 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001089 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001090, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001090 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_5_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001090 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001090 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001091, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001091 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_5_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001091 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001091 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001092, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001092 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_6_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001092 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001092 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001093, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001093 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_6_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001093 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001093 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001094, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001094 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_7_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001094 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001094 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001095, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001095 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_7_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001095 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001095 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001096, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001096 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_8_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001096 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001096 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001097, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001097 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_8_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001097 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001097 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001098, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001098 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_9_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001098 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001098 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001099, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001099 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_9_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001099 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001099 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001100, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001100 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_10_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001100 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001100 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001101, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001101 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_10_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001101 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001101 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001102, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001102 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_11_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001102 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001102 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001103, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001103 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_11_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001103 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001103 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001104, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001104 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_" + "identifiers.undefined_identifier_12_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001104 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001104 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001105, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001105 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.preprocessor.undefined_i" + "dentifiers.undefined_identifier_12_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001105 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001105 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_per_block_buffersTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_per_block_buffersTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7323c9c99ef0d550c0c4a32e439cc8cfcd211c74 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_per_block_buffersTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002263, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002263 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002263 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002263 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002264, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002264 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002264 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002264 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002265, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002265 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002265 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002265 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002266, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002266 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002266 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002266 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002267, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002267 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002267 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002267 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002268, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002268 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002268 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002268 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002269, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002269 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002269 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002269 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002270, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002270 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002270 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002270 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002271, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002271 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002271 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002271 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002272, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002272 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002272 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002272 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002273, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002273 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.10", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002273 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002273 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002274, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002274 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.11", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002274 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002274 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002275, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002275 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.12", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002275 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002275 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002276, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002276 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.13", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002276 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002276 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002277, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002277 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.14", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002277 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002277 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002278, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002278 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.15", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002278 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002278 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002279, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002279 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002279 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002279 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002280, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002280 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.17", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002280 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002280 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002281, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002281 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.18", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002281 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002281 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002282, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002282 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.all_per_block_buffers.19", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002282 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002282 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_shared_bufferTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_shared_bufferTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f140ffb4e04a6fd2cf59249a6fc9e1f4863bf2eb --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_all_shared_bufferTestCase.cpp @@ -0,0 +1,562 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002283, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002283 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002283 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002283 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002284, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002284 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002284 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002284 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002285, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002285 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002285 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002285 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002286, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002286 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002286 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002286 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002287, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002287 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002287 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002287 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002288, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002288 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002288 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002288 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002289, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002289 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002289 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002289 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002290, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002290 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002290 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002290 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002291, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002291 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002291 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002291 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002292, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002292 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002292 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002292 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002293, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002293 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.10", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002293 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002293 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002294, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002294 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.11", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002294 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002294 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002295, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002295 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.12", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002295 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002295 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002296, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002296 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.13", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002296 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002296 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002297, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002297 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.14", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002297 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002297 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002298, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002298 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.15", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002298 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002298 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002299, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002299 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.16", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002299 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002299 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002300, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002300 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.17", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002300 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002300 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002301, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002301 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.18", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002301 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002301 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002302, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002302 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_blo" + "ck.random.all_shared_buffer.19", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002302 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002302 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_arraysTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_arraysTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..81e4e1d8b401445b736e5a6f3fb243592f14360a --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_arraysTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002203, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002203 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002203 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002203 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002204, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002204 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002204 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002204 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002205, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002205 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002205 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002205 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002206, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002206 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002206 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002206 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002207, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002207 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002207 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002207 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002208, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002208 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002208 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002208 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002209, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002209 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002209 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002209 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002210, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002210 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002210 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002210 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002211, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002211 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002211 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002211 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002212, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002212 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_arrays.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002212 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002212 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_typesTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_typesTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..3300a324e0aba8d3085d936a8739de3672728067 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_basic_typesTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002193, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002193 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002193 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002193 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002194, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002194 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002194 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002194 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002195, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002195 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002195 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002195 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002196, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002196 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002196 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002196 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002197, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002197 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002197 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002197 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002198, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002198 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002198 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002198 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002199, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002199 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002199 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002199 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002200, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002200 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002200 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002200 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002201, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002201 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002201 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002201 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002202, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002202 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.basic_types.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002202 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002202 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structsTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structsTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..598415a1e661d1b6a7a438214bd63412015fa215 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structsTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002223, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002223 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002223 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002223 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002224, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002224 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002224 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002224 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002225, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002225 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002225 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002225 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002226, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002226 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002226 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002226 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002227, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002227 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002227 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002227 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002228, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002228 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002228 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002228 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002229, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002229 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002229 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002229 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002230, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002230 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002230 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002230 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002231, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002231 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002231 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002231 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002232, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002232 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_b" + "lock.random.nested_structs.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002232 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002232 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structs_arraysTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structs_arraysTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..23541b99c1c3dbb464eea006a65810359a41a1a9 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_nested_structs_arraysTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002233, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002233 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002233 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002233 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002234, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002234 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002234 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002234 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002235, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002235 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002235 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002235 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002236, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002236 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002236 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002236 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002237, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002237 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002237 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002237 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002238, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002238 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002238 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002238 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002239, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002239 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002239 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002239 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002240, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002240 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002240 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002240 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002241, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002241 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002241 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002241 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002242, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002242 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".random.nested_structs_arrays.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002242 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002242 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_scalar_typesTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_scalar_typesTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4d8abe3122d4fbc1ce5578754bd75359d6659ab9 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_scalar_typesTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002173, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002173 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002173 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002173 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002174, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002174 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002174 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002174 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002175, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002175 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002175 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002175 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002176, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002176 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002176 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002176 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002177, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002177 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002177 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002177 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002178, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002178 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002178 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002178 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002179, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002179 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002179 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002179 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002180, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002180 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002180 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002180 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002181, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002181 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002181 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002181 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002182, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002182 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.scalar_types.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002182 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002182 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_vector_typesTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_vector_typesTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f788796892de4a53229aa3d82783ecd3be703e52 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3random_vector_typesTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002183, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002183 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.0", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002183 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002183 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002184, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002184 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.1", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002184 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002184 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002185, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002185 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002185 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002185 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002186, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002186 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002186 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002186 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002187, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002187 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002187 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002187 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002188, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002188 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.5", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002188 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002188 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002189, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002189 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.6", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002189 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002189 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002190, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002190 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.7", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002190 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002190 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002191, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002191 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.8", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002191 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002191 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002192, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002192 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.random.vector_types.9", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002192 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002192 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_negativeTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_negativeTestCase.cpp index fd9e68f7d12ebaf48f17b001f5391b8f41ffd94f..1a372da134b5589cb97cce7a72e227588930b211 100644 --- a/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_negativeTestCase.cpp +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_negativeTestCase.cpp @@ -13,7 +13,6 @@ * limitations under the License. */ -#include #include #include "../Khrgles3BaseFunc.h" #include "../ActsKhrgles30003TestSuite.h" diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_shader_integer_mixTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_shader_integer_mixTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..57aa7dbd260ca299e05e6483ddc1a9ee92d19e8e --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3shaders_shader_integer_mixTestCase.cpp @@ -0,0 +1,211 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002953, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002953 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.sha" + "der_integer_mix.define", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002953 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002953 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002954, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002954 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shader_int" + "eger_mix.prototypes-extension", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002954 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002954 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002955, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002955 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shade" + "r_integer_mix.prototypes", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002955 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002955 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002956, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002956 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shader_int" + "eger_mix.prototypes-negative", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002956 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002956 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002957, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002957 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shade" + "r_integer_mix.mix-ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002957 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002957 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002958, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002958 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shade" + "r_integer_mix.mix-uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002958 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002958 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002959, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002959 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.shade" + "r_integer_mix.mix-bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002959 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002959 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_packedTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_packedTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..35c49504235962803f5ffe8fcc8e0c2f80540bbf --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_packedTestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001882, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001882 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001882 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001882 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001883, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001883 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001883 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001883 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001884, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001884 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001884 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001884 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001885, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001885 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001885 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001885 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001886, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001886 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_bloc" + "k.single_basic_array.packed.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001886 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001886 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001887, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001887 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001887 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001887 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001888, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001888 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001888 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001888 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001889, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001889 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001889 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001889 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001890, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001890 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001890 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001890 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001891, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001891 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001891 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001891 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001892, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001892 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001892 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001892 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001893, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001893 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001893 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001893 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001894, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001894 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001894 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001894 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001895, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001895 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001895 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001895 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001896, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001896 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001896 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001896 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001897, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001897 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001897 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001897 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001898, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001898 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001898 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001898 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001899, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001899 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.packed.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001899 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001899 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001900, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001900 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001900 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001900 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001901, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001901 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001901 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001901 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001902, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001902 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.packed.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001902 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001902 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001903, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001903 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001903 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001903 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001904, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001904 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.packed.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001904 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001904 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001905, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001905 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.packed.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001905 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001905 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001906, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001906 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001906 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001906 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001907, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001907 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001907 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001907 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001908, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001908 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001908 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001908 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001909, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001909 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001909 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001909 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001910, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001910 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001910 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001910 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001911, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001911 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001911 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001911 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001912, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001912 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001912 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001912 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001913, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001913 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001913 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001913 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001914, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001914 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001914 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001914 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001915, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001915 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001915 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001915 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001916, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001916 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001916 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001916 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001917, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001917 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001917 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001917 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001918, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001918 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001918 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001918 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001919, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001919 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001919 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001919 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001920, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001920 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001920 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001920 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001921, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001921 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001921 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001921 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001922, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001922 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.packed.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001922 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001922 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001923, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001923 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.packed.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001923 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001923 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001924, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001924 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.packed.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001924 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001924 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_sharedTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_sharedTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fab6ddeffa6da33a861720a1883e9a9bad143a82 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_sharedTestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001839, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001839 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001839 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001839 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001840, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001840 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001840 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001840 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001841, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001841 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001841 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001841 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001842, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001842 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001842 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001842 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001843, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001843 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_bloc" + "k.single_basic_array.shared.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001843 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001843 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001844, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001844 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001844 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001844 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001845, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001845 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001845 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001845 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001846, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001846 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001846 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001846 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001847, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001847 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001847 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001847 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001848, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001848 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001848 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001848 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001849, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001849 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001849 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001849 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001850, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001850 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001850 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001850 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001851, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001851 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001851 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001851 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001852, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001852 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001852 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001852 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001853, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001853 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001853 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001853 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001854, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001854 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001854 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001854 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001855, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001855 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001855 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001855 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001856, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001856 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.shared.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001856 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001856 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001857, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001857 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001857 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001857 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001858, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001858 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001858 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001858 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001859, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001859 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.shared.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001859 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001859 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001860, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001860 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001860 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001860 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001861, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001861 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.shared.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001861 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001861 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001862, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001862 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.shared.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001862 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001862 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001863, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001863 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001863 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001863 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001864, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001864 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001864 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001864 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001865, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001865 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001865 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001865 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001866, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001866 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001866 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001866 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001867, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001867 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001867 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001867 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001868, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001868 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001868 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001868 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001869, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001869 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001869 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001869 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001870, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001870 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001870 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001870 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001871, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001871 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001871 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001871 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001872, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001872 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001872 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001872 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001873, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001873 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001873 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001873 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001874, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001874 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001874 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001874 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001875, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001875 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001875 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001875 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001876, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001876 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001876 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001876 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001877, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001877 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001877 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001877 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001878, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001878 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001878 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001878 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001879, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001879 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.shared.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001879 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001879 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001880, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001880 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.shared.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001880 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001880 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001881, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001881 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.shared.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001881 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001881 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_std140TestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_std140TestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..727cdc9adef2e83bcf79264b1405e346f48b7959 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3single_basic_array_std140TestCase.cpp @@ -0,0 +1,1183 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001925, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001925 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.float", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001925 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001925 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001926, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001926 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.vec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001926 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001926 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001927, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001927 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.vec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001927 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001927 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001928, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001928 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.vec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001928 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001928 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001929, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001929 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_bloc" + "k.single_basic_array.std140.int", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001929 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001929 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001930, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001930 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.ivec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001930 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001930 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001931, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001931 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.ivec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001931 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001931 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001932, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001932 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.ivec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001932 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001932 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001933, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001933 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.uint", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001933 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001933 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001934, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001934 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.uvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001934 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001934 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001935, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001935 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.uvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001935 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001935 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001936, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001936 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.uvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001936 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001936 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001937, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001937 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.bool", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001937 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001937 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001938, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001938 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.bvec2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001938 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001938 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001939, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001939 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.bvec3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001939 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001939 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001940, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001940 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.bvec4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001940 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001940 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001941, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001941 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001941 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001941 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001942, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001942 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.std140.row_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001942 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001942 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001943, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001943 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.column_major_mat2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001943 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001943 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001944, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001944 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001944 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001944 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001945, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001945 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.std140.row_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001945 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001945 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001946, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001946 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.column_major_mat3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001946 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001946 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001947, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001947 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block" + ".single_basic_array.std140.mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001947 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001947 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001948, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001948 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.sing" + "le_basic_array.std140.row_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001948 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001948 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001949, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001949 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.column_major_mat4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001949 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001949 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001950, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001950 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001950 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001950 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001951, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001951 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001951 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001951 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001952, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001952 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat2x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001952 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001952 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001953, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001953 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001953 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001953 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001954, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001954 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001954 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001954 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001955, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001955 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat2x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001955 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001955 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001956, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001956 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001956 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001956 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001957, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001957 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001957 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001957 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001958, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001958 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat3x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001958 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001958 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001959, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001959 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001959 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001959 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001960, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001960 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001960 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001960 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001961, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001961 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat3x4", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001961 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001961 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001962, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001962 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001962 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001962 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001963, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001963 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001963 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001963 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001964, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001964 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat4x2", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001964 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001964 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001965, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001965 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block." + "single_basic_array.std140.mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001965 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001965 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001966, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001966 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_basic_array.std140.row_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001966 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001966 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001967, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001967 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_basic_array.std140.column_major_mat4x3", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001967 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001967 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_localTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_localTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..12a215cee124dabf4c3e6b1ac2b3c25597f252d6 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_localTestCase.cpp @@ -0,0 +1,1210 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001402, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001402 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.str" + "uct.local.basic_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001402 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001402 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001403, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001403 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.stru" + "ct.local.basic_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001403 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001403 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001404, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001404 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.stru" + "ct.local.nested_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001404 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001404 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001405, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001405 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.local.nested_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001405 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001405 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001406, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001406 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct." + "local.array_member_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001406 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001406 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001407, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001407 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.l" + "ocal.array_member_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001407 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001407 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001408, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001408 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.a" + "rray_member_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001408 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001408 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001409, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001409 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.ar" + "ray_member_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001409 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001409 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001410, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001410 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct." + "local.struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001410 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001410 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001411, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001411 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.l" + "ocal.struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001411 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001411 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001412, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001412 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.s" + "truct_array_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001412 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001412 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001413, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001413 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.st" + "ruct_array_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001413 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001413 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001414, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001414 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.loc" + "al.nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001414 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001414 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001415, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001415 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.loca" + "l.nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001415 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001415 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001416, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001416 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.nest" + "ed_struct_array_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001416 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001416 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001417, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001417 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.neste" + "d_struct_array_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001417 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001417 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001418, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001418 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.local.parameter_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001418 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001418 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001419, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001419 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct" + ".local.parameter_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001419 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001419 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001420, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001420 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.lo" + "cal.parameter_nested_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001420 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001420 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001421, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001421 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.loc" + "al.parameter_nested_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001421 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001421 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001422, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001422 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.stru" + "ct.local.return_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001422 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001422 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001423, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001423 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.local.return_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001423 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001423 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001424, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001424 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct." + "local.return_nested_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001424 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001424 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001425, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001425 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.l" + "ocal.return_nested_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001425 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001425 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001426, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001426 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local" + ".conditional_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001426 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001426 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001427, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001427 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local." + "conditional_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001427 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001427 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001428, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001428 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.l" + "ocal.loop_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001428 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001428 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001429, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001429 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.lo" + "cal.loop_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001429 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001429 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001430, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001430 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local" + ".dynamic_loop_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001430 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001430 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001431, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001431 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local." + "dynamic_loop_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001431 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001431 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001432, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001432 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.ne" + "sted_conditional_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001432 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001432 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001433, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001433 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.nes" + "ted_conditional_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001433 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001433 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001434, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001434 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local" + ".nested_loop_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001434 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001434 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001435, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001435 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local." + "nested_loop_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001435 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001435 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001436, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001436 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.nes" + "ted_dynamic_loop_assignment_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001436 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001436 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001437, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001437 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.nest" + "ed_dynamic_loop_assignment_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001437 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001437 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001438, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001438 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.lo" + "cal.loop_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001438 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001438 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001439, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001439 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.loc" + "al.loop_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001439 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001439 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001440, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001440 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local." + "loop_nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001440 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001440 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001441, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001441 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.l" + "oop_nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001441 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001441 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001442, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001442 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local." + "dynamic_loop_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001442 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001442 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001443, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001443 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.d" + "ynamic_loop_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001443 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001443 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001444, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001444 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.dyna" + "mic_loop_nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001444 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001444 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001445, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001445 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.local.dynam" + "ic_loop_nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001445 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001445 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_uniformTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_uniformTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..207c5037dad061d2c45e2a6fb1144236d06d1765 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3struct_uniformTestCase.cpp @@ -0,0 +1,832 @@ +/* + * 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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001446, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001446 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.stru" + "ct.uniform.basic_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001446 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001446 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001447, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001447 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.uniform.basic_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001447 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001447 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001448, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001448 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.uniform.nested_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001448 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001448 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001449, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001449 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct" + ".uniform.nested_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001449 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001449 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001450, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001450 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.u" + "niform.array_member_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001450 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001450 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001451, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001451 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.un" + "iform.array_member_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001451 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001451 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001452, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001452 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform." + "array_member_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001452 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001452 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001453, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001453 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.a" + "rray_member_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001453 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001453 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001454, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001454 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.u" + "niform.struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001454 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001454 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001455, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001455 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.un" + "iform.struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001455 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001455 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001456, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001456 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform." + "struct_array_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001456 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001456 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001457, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001457 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.s" + "truct_array_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001457 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001457 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001458, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001458 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.unif" + "orm.nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001458 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001458 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001459, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001459 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.unifo" + "rm.nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001459 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001459 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001460, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001460 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.nes" + "ted_struct_array_dynamic_index_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001460 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001460 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001461, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001461 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.nest" + "ed_struct_array_dynamic_index_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001461 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001461 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001462, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001462 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uni" + "form.loop_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001462 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001462 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001463, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001463 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.unif" + "orm.loop_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001463 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001463 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001464, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001464 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform" + ".loop_nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001464 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001464 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001465, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001465 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform." + "loop_nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001465 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001465 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001466, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001466 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform" + ".dynamic_loop_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001466 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001466 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001467, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001467 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform." + "dynamic_loop_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001467 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001467 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001468, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001468 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.dyn" + "amic_loop_nested_struct_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001468 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001468 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001469, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001469 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uniform.dyna" + "mic_loop_nested_struct_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001469 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001469 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001470, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001470 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struc" + "t.uniform.sampler_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001470 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001470 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001471, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001471 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct" + ".uniform.sampler_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001471 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001471 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001472, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001472 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.un" + "iform.sampler_nested_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001472 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001472 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001473, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001473 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.uni" + "form.sampler_nested_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001473 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001473 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001474, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001474 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.u" + "niform.sampler_array_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001474 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001474 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001475, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001475 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.struct.un" + "iform.sampler_array_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001475 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001475 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_commonTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_commonTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4d0ea89f55f2a65d85577f00b88440aa8b22efc4 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_commonTestCase.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 "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30003TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002303, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002303 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_bl" + "ock.common.precision_matching", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002303 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002303 end"; +} + +static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002304, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002304 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_" + "block.common.name_matching", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002304 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002304 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_structTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_structTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..af12f92f7398d5749fd2b637470a081eb1ba19c4 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_structTestCase.cpp @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001986, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001986 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_nested_struct.per_block_buffer_shared", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001986 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001986 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001987, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001987 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested" + "_struct.per_block_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001987 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001987 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001988, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001988 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_nested_struct.per_block_buffer_packed", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001988 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001988 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001989, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001989 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested" + "_struct.per_block_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001989 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001989 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001990, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001990 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single" + "_nested_struct.per_block_buffer_std140", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001990 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001990 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001991, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001991 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested" + "_struct.per_block_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001991 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001991 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001992, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001992 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_neste" + "d_struct.single_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001992 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001992 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001993, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001993 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_neste" + "d_struct.single_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001993 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001993 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001994, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001994 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_neste" + "d_struct.single_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001994 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001994 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_struct_arrayTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_struct_arrayTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..49e28a5b5118271a4e19c80528f0ca76fcabe53f --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_nested_struct_arrayTestCase.cpp @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001995, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001995 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_ne" + "sted_struct_array.per_block_buffer_shared", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001995 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001995 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001996, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001996 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_st" + "ruct_array.per_block_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001996 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001996 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001997, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001997 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_ne" + "sted_struct_array.per_block_buffer_packed", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001997 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001997 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001998, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001998 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_st" + "ruct_array.per_block_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001998 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001998 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001999, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001999 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_ne" + "sted_struct_array.per_block_buffer_std140", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001999 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001999 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_002000, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002000 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_st" + "ruct_array.per_block_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002000 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002000 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_002001, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002001 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_s" + "truct_array.single_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002001 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002001 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_002002, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002002 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_s" + "truct_array.single_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002002 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002002 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_002003, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_002003 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_nested_s" + "truct_array.single_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_002003 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_002003 end"; +} diff --git a/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_struct_arrayTestCase.cpp b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_struct_arrayTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..8a61f8fadf9b989cab28caa0a2c6769ab498b844 --- /dev/null +++ b/graphic/vkgl/src/khrgles3/shaders/Khrgles3uniform_block_single_struct_arrayTestCase.cpp @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include "../Khrgles3BaseFunc.h" +#include "../ActsKhrgles30002TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001977, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001977 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_struct_array.per_block_buffer_shared", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001977 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001977 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001978, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001978 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_struct" + "_array.per_block_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001978 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001978 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001979, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001979 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_struct_array.per_block_buffer_packed", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001979 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001979 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001980, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001980 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_struct" + "_array.per_block_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001980 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001980 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001981, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001981 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.singl" + "e_struct_array.per_block_buffer_std140", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001981 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001981 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001982, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001982 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_struct" + "_array.per_block_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001982 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001982 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001983, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001983 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_stru" + "ct_array.single_buffer_shared_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001983 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001983 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001984, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001984 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_stru" + "ct_array.single_buffer_packed_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001984 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001984 end"; +} + +static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001985, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_001985 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES3.shaders.uniform_block.single_stru" + "ct_array.single_buffer_std140_instance_array", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_001985 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_001985 end"; +}