/* * 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_007583, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007583 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007583 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007583 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007584, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007584 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007584 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007584 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007585, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007585 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007585 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007585 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007586, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007586 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.m" "ul_assign.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_007586 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007586 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007587, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007587 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007587 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007587 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007588, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007588 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007588 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007588 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007589, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007589 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007589 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007589 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007590, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007590 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007590 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007590 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007591, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007591 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007591 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007591 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007592, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007592 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.m" "ul_assign.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_007592 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007592 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007593, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007593 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007593 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007593 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007594, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007594 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007594 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007594 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007595, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007595 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007595 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007595 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007596, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007596 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007596 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007596 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007597, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007597 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007597 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007597 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007598, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007598 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.m" "ul_assign.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_007598 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007598 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007599, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007599 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".mul_assign.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_007599 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007599 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007600, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007600 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "mul_assign.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_007600 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007600 end"; }