/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include "../Deqpgles2BaseFunc.h" #include "../ActsDeqpgles20008TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007511, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007511 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_lowp_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007511 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007511 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007512, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007512 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_lowp_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007512 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007512 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007513, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007513 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_mediump_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007513 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007513 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007514, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007514 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.pos" "t_increment.dynamic_mediump_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007514 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007514 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007515, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007515 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_highp_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007515 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007515 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007516, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007516 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_highp_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007516 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007516 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007517, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007517 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_lowp_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007517 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007517 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007518, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007518 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_lowp_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007518 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007518 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007519, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007519 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_mediump_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007519 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007519 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007520, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007520 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.pos" "t_increment.dynamic_mediump_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007520 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007520 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007521, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007521 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_highp_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007521 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007521 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007522, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007522 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_highp_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007522 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007522 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007523, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007523 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_lowp_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007523 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007523 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007524, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007524 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_lowp_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007524 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007524 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007525, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007525 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_mediump_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007525 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007525 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007526, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007526 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.pos" "t_increment.dynamic_mediump_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007526 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007526 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007527, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007527 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.p" "ost_increment.dynamic_highp_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007527 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007527 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007528, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007528 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.po" "st_increment.dynamic_highp_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007528 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007528 end"; }